Add query and transact commands to help

This commit is contained in:
Emily Toop 2017-05-22 17:11:00 +01:00
parent 99e1c35377
commit 825726ddf9

View file

@ -16,7 +16,11 @@ use mentat_core::TypedValue;
use command_parser::{ use command_parser::{
Command, Command,
HELP_COMMAND, HELP_COMMAND,
OPEN_COMMAND OPEN_COMMAND,
QUERY_COMMAND,
ALT_QUERY_COMMAND,
TRANSACT_COMMAND,
ALT_TRANSACT_COMMAND
}; };
use input::InputReader; use input::InputReader;
use input::InputResult::{ use input::InputResult::{
@ -35,6 +39,10 @@ lazy_static! {
let mut map = HashMap::new(); let mut map = HashMap::new();
map.insert(HELP_COMMAND, "Show help for commands."); map.insert(HELP_COMMAND, "Show help for commands.");
map.insert(OPEN_COMMAND, "Open a database at path."); 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 map
}; };
} }