Add query and transact commands to help
This commit is contained in:
parent
99e1c35377
commit
825726ddf9
1 changed files with 9 additions and 1 deletions
|
@ -16,7 +16,11 @@ use mentat_core::TypedValue;
|
|||
use command_parser::{
|
||||
Command,
|
||||
HELP_COMMAND,
|
||||
OPEN_COMMAND
|
||||
OPEN_COMMAND,
|
||||
QUERY_COMMAND,
|
||||
ALT_QUERY_COMMAND,
|
||||
TRANSACT_COMMAND,
|
||||
ALT_TRANSACT_COMMAND
|
||||
};
|
||||
use input::InputReader;
|
||||
use input::InputResult::{
|
||||
|
@ -35,6 +39,10 @@ lazy_static! {
|
|||
let mut map = HashMap::new();
|
||||
map.insert(HELP_COMMAND, "Show help for commands.");
|
||||
map.insert(OPEN_COMMAND, "Open a database at path.");
|
||||
map.insert(QUERY_COMMAND, "Execute a query against the current open database.");
|
||||
map.insert(ALT_QUERY_COMMAND, "Shortcut for `.query`. Execute a query against the current open database.");
|
||||
map.insert(TRANSACT_COMMAND, "Execute a transact against the current open database.");
|
||||
map.insert(ALT_TRANSACT_COMMAND, "Shortcut for `.transact`. Execute a transact against the current open database.");
|
||||
map
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue