Command for displaying version information about SVCS.
More...
#include <VersionCommand.hxx>
|
| | VersionCommand (std::shared_ptr< ISubject > subject) |
| | Constructs the VersionCommand.
|
| bool | execute (const std::vector< std::string > &args) override |
| | Executes the version command.
|
| std::string | getName () const override |
| | Gets the name of the command.
|
| std::string | getDescription () const override |
| | Gets the description of the command.
|
| std::string | getUsage () const override |
| | Gets the usage syntax of the command.
|
| void | showHelp () const override |
| | Shows detailed help information for this command.
|
| Public Member Functions inherited from svcs::cli::ICommand |
| virtual | ~ICommand ()=default |
| | Virtual destructor.
|
Command for displaying version information about SVCS.
The VersionCommand shows the current version, build information, and copyright details.
◆ VersionCommand()
| svcs::cli::VersionCommand::VersionCommand |
( |
std::shared_ptr< ISubject > | subject | ) |
|
|
explicit |
Constructs the VersionCommand.
- Parameters
-
| subject | Shared pointer to the event bus for notifications. |
◆ execute()
| bool svcs::cli::VersionCommand::execute |
( |
const std::vector< std::string > & | args | ) |
|
|
overridevirtual |
Executes the version command.
- Parameters
-
| args | Command arguments (ignored for version command). |
- Returns
- true always, as version command cannot fail.
Implements svcs::cli::ICommand.
◆ getDescription()
| std::string svcs::cli::VersionCommand::getDescription |
( |
| ) |
const |
|
nodiscardoverridevirtual |
Gets the description of the command.
- Returns
- "Show version information"
Implements svcs::cli::ICommand.
◆ getName()
| std::string svcs::cli::VersionCommand::getName |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ getUsage()
| std::string svcs::cli::VersionCommand::getUsage |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ showHelp()
| void svcs::cli::VersionCommand::showHelp |
( |
| ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following files: