Arkanjo 0.2
A tool for find code duplicated functions in codebases
Loading...
Searching...
No Matches
OrchestratorHelper Namespace Reference

Functions

Step setup_command_step (std::unique_ptr< ICommand > &command, const std::vector< std::pair< std::vector< std::string >, CommandsRegistry::CommandFactory > > &commands)
 
bool formatter_step (Context &ctx)
 
Step similarity_step (Similarity_Table &table)
 
Step command_run_step (std::shared_ptr< ICommand > command, const OptionsCollector &collector)
 

Variables

constexpr CliOption global_long_opts []
 

Function Documentation

◆ command_run_step()

Step OrchestratorHelper::command_run_step ( std::shared_ptr< ICommand > command,
const OptionsCollector & collector )

Definition at line 78 of file orchestrator_helper.hpp.

◆ formatter_step()

bool OrchestratorHelper::formatter_step ( Context & ctx)

Definition at line 53 of file orchestrator_helper.hpp.

◆ setup_command_step()

Step OrchestratorHelper::setup_command_step ( std::unique_ptr< ICommand > & command,
const std::vector< std::pair< std::vector< std::string >, CommandsRegistry::CommandFactory > > & commands )

Definition at line 28 of file orchestrator_helper.hpp.

◆ similarity_step()

Step OrchestratorHelper::similarity_step ( Similarity_Table & table)

Definition at line 66 of file orchestrator_helper.hpp.

Variable Documentation

◆ global_long_opts

CliOption OrchestratorHelper::global_long_opts[]
constexpr
Initial value:
= {
{"name", 'n', RequiredArgument, "Assign a name to the cache container; defaults to 'default' if not provided."},
{"color", 0, NoArgument, "Enable colored output."},
{"no-color", 0, NoArgument, "Disable colored output."},
{"json", 0, NoArgument, "Json output."},
{"preprocessor", 0, NoArgument, "Forces the preprocessor to execute."},
{"similarity", 'S', RequiredArgument, "Changes the similarity threshold to `SIMILARITY` for the current command only."},
{"help", 'h', NoArgument, "Show this help message."},
}
#define OPTION_END
This marks the end of a long array of options.
@ RequiredArgument
@ NoArgument

Definition at line 17 of file orchestrator_helper.hpp.