26#ifndef ROUTER_KEYRING_FRONTEND_INCLUDED 
   27#define ROUTER_KEYRING_FRONTEND_INCLUDED 
   87                  const std::vector<std::string> &args,
 
   88                  std::istream &is = std::cin, std::ostream &os = std::cout,
 
   89                  std::ostream &es = std::cerr);
 
  106  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:141
 
exception thrown by the frontend.
Definition: passwd.h:42
 
FrontendError(const std::string &what)
Definition: keyring_frontend.h:43
 
passwd file management frontend.
Definition: keyring_frontend.h:60
 
static std::string get_version() noexcept
get version text.
Definition: keyring_frontend.cc:79
 
void init_from_arguments(const std::vector< std::string > &arguments)
Definition: keyring_frontend.cc:56
 
Cmd
Definition: keyring_frontend.h:62
 
void prepare_args()
prepare arguments and cmds.
Definition: keyring_frontend.cc:543
 
std::ostream & cout_
Definition: keyring_frontend.h:123
 
std::string read_password()
 
int run()
run frontend according to configuration.
Definition: keyring_frontend.cc:652
 
Config config_
Definition: keyring_frontend.h:126
 
CmdArgHandler arg_handler_
Definition: keyring_frontend.h:121
 
std::istream & cin_
Definition: keyring_frontend.h:122
 
std::ostream & cerr_
Definition: keyring_frontend.h:124
 
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:67
 
void prepare_command_options()
Definition: keyring_frontend.cc:845
 
std::string get_help(const size_t screen_width=80) const
get help text.
Definition: keyring_frontend.cc:91
 
std::string program_name_
Definition: keyring_frontend.h:120
 
frontend error that involved the command-line options.
Definition: passwd.h:53
 
UsageError(const std::string &what)
Definition: keyring_frontend.h:54
 
Definition: gcs_xcom_synode.h:64
 
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2880
 
Definition: keyring_frontend.h:75
 
std::string username
Definition: keyring_frontend.h:81
 
Cmd cmd
Definition: keyring_frontend.h:76
 
std::string value
Definition: keyring_frontend.h:83
 
std::string keyring_filename
Definition: keyring_frontend.h:77
 
std::string master_key_reader
Definition: keyring_frontend.h:79
 
std::string master_key_writer
Definition: keyring_frontend.h:80
 
std::string master_keyring_filename
Definition: keyring_frontend.h:78
 
std::string field
Definition: keyring_frontend.h:82