The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Tapper::CLI::User

SYNOPSIS

This module is part of the Tapper::CLI framework. It is supposed to be used together with App::Rad. All following functions expect their arguments as $c->options->{$arg}.

    use App::Rad;
    use Tapper::CLI::User;
    Tapper::CLI::User::setup($c);
    App::Rad->run();

NAME

Tapper::CLI::User - Tapper - user handling commands for the tapper CLI

FUNCTIONS

get_contacts

Get contacts from YAML. Errors are printed out instead of returned. This seems to be ok for a CLI function.

@param array ref - containing YAML strings or file names

@return list of contacts that could be parsed

usernew

Create a new user.

@optparam login - login name for the user (default is $ENV{USER}) @optparam name - real name of the user (try to get from system if empty) @optparam contact - contact information in YAML or name of a file containing this information (can be given multiple times) @optparam help - print out help message and die

contactadd

Add contacts to an existing user.

@param contact - contact information in YAML or name of a file containing this information (can be given multiple times) @optparam login - login name for the user (default is $ENV{USER}) @optparam quiet - stay silent when adding contacts succeeded @optparam help - print out help message and die

userlist

Show all or a subset of user subscriptions

@optparam

userupdate

Update an existing user subscription.

@param file - name of the file containing the new data for subscription user in YAML @param id - id of the user subscription to update @optparam quiet - stay silent when updating succeeded @optparam help - print out help message and die

userdel

Delete an existing user subscription.

@param id - id of the user subscription to delete @optparam quiet - stay silent when deleting user succeeded @optparam help - print out help message and die

setup

Initialize the user functions for tapper CLI

AUTHOR

AMD OSRC Tapper Team <tapper@amd64.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2016 by Advanced Micro Devices, Inc..

This is free software, licensed under:

  The (two-clause) FreeBSD License