|
SVCS - English Documentation
|
Command for viewing the history of saves (commits) in the repository. More...
#include <HistoryCommand.hxx>
Public Member Functions | |
| HistoryCommand (std::shared_ptr< ISubject > subject, std::shared_ptr< RepositoryManager > repoManager) | |
| Constructor for HistoryCommand. | |
| bool | execute (const std::vector< std::string > &args) override |
| Executes the "history" command with the given arguments. | |
| std::string | getName () const override |
| Gets the name of the command. | |
| std::string | getDescription () const override |
| Gets a brief description of the command. | |
| std::string | getUsage () const override |
| Gets the command's usage syntax. | |
| void | showHelp () const override |
| Displays the detailed help information for the command. | |
| Public Member Functions inherited from svcs::cli::ICommand | |
| virtual | ~ICommand ()=default |
| Virtual destructor. | |
Command for viewing the history of saves (commits) in the repository.
The HistoryCommand displays the chronological history of all saves with their messages, authors, timestamps, and unique identifiers. It supports different output formats, including default, one-line, and detailed views.
| svcs::cli::HistoryCommand::HistoryCommand | ( | std::shared_ptr< ISubject > | subject, |
| std::shared_ptr< RepositoryManager > | repoManager ) |
Constructor for HistoryCommand.
| subject | A shared pointer to the ISubject (event bus). |
| repoManager | A shared pointer to the RepositoryManager. |
|
overridevirtual |
Executes the "history" command with the given arguments.
This method is the main entry point for the command, handling argument parsing and delegating to the appropriate history display function.
| args | The vector of string arguments for the command (e.g., limit, format options). |
Implements svcs::cli::ICommand.
|
nodiscardoverridevirtual |
Gets a brief description of the command.
Implements svcs::cli::ICommand.
|
inlinenodiscardoverridevirtual |
|
nodiscardoverridevirtual |
Gets the command's usage syntax.
Implements svcs::cli::ICommand.
|
overridevirtual |
Displays the detailed help information for the command.
Implements svcs::cli::ICommand.