#include <fs/tool/command.h>
|
typedef std::function< bool(const std::vector< std::string > &)> | callback |
|
|
static bool | execute (std::string action, const std::vector< std::string > ¶m) |
|
static bool | execute (const std::vector< std::string > &parts) |
|
static bool | execute (const std::string &line) |
|
static void | complete (const char *input, std::vector< std::string > &completions) |
|
static void | help () |
|
◆ callback
◆ Command() [1/2]
Command::Command |
( |
const std::vector< std::string > && |
name, |
|
|
const std::vector< Parameter > && |
args, |
|
|
const std::string && |
description, |
|
|
const callback |
action |
|
) |
| |
|
inline |
◆ Command() [2/2]
Command::Command |
( |
const std::vector< std::string > && |
name, |
|
|
const std::string && |
description, |
|
|
const callback |
action |
|
) |
| |
|
inline |
◆ execute() [1/3]
bool Command::execute |
( |
std::string |
action, |
|
|
const std::vector< std::string > & |
param |
|
) |
| |
|
static |
◆ execute() [2/3]
bool Command::execute |
( |
const std::vector< std::string > & |
parts | ) |
|
|
static |
◆ execute() [3/3]
bool Command::execute |
( |
const std::string & |
line | ) |
|
|
static |
◆ complete()
void Command::complete |
( |
const char * |
input, |
|
|
std::vector< std::string > & |
completions |
|
) |
| |
|
static |
◆ help()
◆ name
const std::vector<std::string> Command::name |
◆ args
◆ description
const std::string Command::description |
◆ action
The documentation for this struct was generated from the following files: