25#ifndef ROUTER_KEYRING_FRONTEND_INCLUDED
26#define ROUTER_KEYRING_FRONTEND_INCLUDED
86 const std::vector<std::string> &args,
87 std::istream &is = std::cin, std::ostream &os = std::cout,
88 std::ostream &es = std::cerr);
105 std::string
get_help(
const size_t screen_width = 80)
const;
Defining the commandline argument handler class CmdArgHandler.
Handles command line arguments.
Definition: arg_handler.h:140
exception thrown by the frontend.
Definition: passwd.h:41
FrontendError(const std::string &what)
Definition: keyring_frontend.h:42
passwd file management frontend.
Definition: keyring_frontend.h:59
static std::string get_version() noexcept
get version text.
Definition: keyring_frontend.cc:78
void init_from_arguments(const std::vector< std::string > &arguments)
Definition: keyring_frontend.cc:55
Cmd
Definition: keyring_frontend.h:61
void prepare_args()
prepare arguments and cmds.
Definition: keyring_frontend.cc:542
std::ostream & cout_
Definition: keyring_frontend.h:122
std::string read_password()
int run()
run frontend according to configuration.
Definition: keyring_frontend.cc:651
Config config_
Definition: keyring_frontend.h:125
CmdArgHandler arg_handler_
Definition: keyring_frontend.h:120
std::istream & cin_
Definition: keyring_frontend.h:121
std::ostream & cerr_
Definition: keyring_frontend.h:123
KeyringFrontend(const std::string &exe_name, const std::vector< std::string > &args, std::istream &is=std::cin, std::ostream &os=std::cout, std::ostream &es=std::cerr)
Definition: keyring_frontend.cc:66
void prepare_command_options()
Definition: keyring_frontend.cc:844
std::string get_help(const size_t screen_width=80) const
get help text.
Definition: keyring_frontend.cc:90
std::string program_name_
Definition: keyring_frontend.h:119
frontend error that involved the command-line options.
Definition: passwd.h:52
UsageError(const std::string &what)
Definition: keyring_frontend.h:53
Definition: varlen_sort.h:174
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2873
Definition: keyring_frontend.h:74
std::string username
Definition: keyring_frontend.h:80
Cmd cmd
Definition: keyring_frontend.h:75
std::string value
Definition: keyring_frontend.h:82
std::string keyring_filename
Definition: keyring_frontend.h:76
std::string master_key_reader
Definition: keyring_frontend.h:78
std::string master_key_writer
Definition: keyring_frontend.h:79
std::string master_keyring_filename
Definition: keyring_frontend.h:77
std::string field
Definition: keyring_frontend.h:81