.
This commit is contained in:
@ -90,11 +90,11 @@ void dropshell::autocomplete_list_commands()
|
||||
|
||||
// add in commmands hard-coded and handled in main
|
||||
commands.merge(std::set<std::string>{
|
||||
"help","init" // these are always available.
|
||||
"help","edit" // these are always available.
|
||||
});
|
||||
if (dropshell::gConfig().is_config_set())
|
||||
commands.merge(std::set<std::string>{
|
||||
"server","templates","create-service","create-template","create-server","edit","ssh",
|
||||
"server","templates","create-service","create-template","create-server","ssh",
|
||||
"list" // only if we have a config.
|
||||
});
|
||||
for (const auto& command : commands) {
|
||||
|
Reference in New Issue
Block a user