hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
interactive_common_cli.cpp File Reference
#include <numeric>
#include <utility>
#include "common/bind.hpp"
#include "interactive/interactive_common_cli.hpp"
#include "parser/parser.hpp"
Include dependency graph for interactive_common_cli.cpp:

Namespaces

 iroha_cli
 
 iroha_cli::interactive
 

Functions

DescriptionMap iroha_cli::interactive::getCommonDescriptionMap ()
 
ParamsMap iroha_cli::interactive::getCommonParamsMap (const std::string &default_ip, int default_port)
 
ParamsDescription iroha_cli::interactive::makeParamsDescription (const std::vector< std::string > &params)
 
void iroha_cli::interactive::handleEmptyCommand ()
 
void iroha_cli::interactive::handleUnknownCommand (std::string &command)
 
void iroha_cli::interactive::addBackOption (MenuPoints &menu)
 
bool iroha_cli::interactive::isBackOption (std::string line)
 
void iroha_cli::interactive::printCommandParameters (std::string &command, const ParamsDescription &parameters)
 
void iroha_cli::interactive::printMenu (const std::string &message, MenuPoints menu_points)
 
boost::optional< std::string > iroha_cli::interactive::promptString (const std::string &message)
 
boost::optional< std::string > iroha_cli::interactive::promptString (const ParamData &param)
 
void iroha_cli::interactive::printEnd ()
 
boost::optional< std::pair< std::string, uint16_t > > iroha_cli::interactive::parseIrohaPeerParams (std::vector< std::string > params, const std::string &default_ip, int default_port)
 
boost::optional< std::vector< std::string > > iroha_cli::interactive::parseParams (std::string line, std::string command_name, ParamsMap &params_map)
 
size_t iroha_cli::interactive::addMenuPoint (std::vector< std::string > &menu_points, const std::string &description, const std::string &command_short_name)