|
|
| command_setenv () |
| | Constructs command.
|
| |
| shell_status | run (const std::span< const std::string > &vArgs, shell_session &oSession) const override |
| | Sets the env variable value. If the env variable does not exist, creates it.
|
| |
| virtual void | msg_error_param_number (std::ostream &oStdErr, std::size_t nArgs) const |
| | Print an error if the wrong number of arguments is provided.
|
| |
| virtual void | msg_error_variable_name (std::ostream &oStdErr, const std::string &sVariableName) const |
| | Print an error if variable name is invalid.
|
| |
Public Member Functions inherited from bs::command |
| | command (std::string sName) |
| | Construct a command with a given name.
|
| |
|
virtual | ~command ()=default |
| | Virtual destructor.
|
| |
| std::string | get_name () const |
| | Get the command name (copy).
|
| |
| const std::string & | get_name_ref () const noexcept |
| | Get the command name (reference).
|
| |
Sets the value of an environment variable.
Syntax: setenv variable value