This commit is contained in:
j842
2025-05-05 14:45:47 +12:00
parent c0dc928070
commit 0462748336
5 changed files with 8 additions and 6 deletions

View File

@ -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) {