Only suggest "all" autocomplete when server has multiple services
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 28s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m15s

This commit is contained in:
j
2026-03-29 19:44:33 +13:00
parent 10c043878f
commit bf9cdeccc7

View File

@@ -52,8 +52,12 @@ namespace dropshell
{
std_autocomplete(ctx);
if (ctx.args.size() == 1)
{
std::vector<LocalServiceInfo> services = get_server_services_info(ctx.args[0]);
if (services.size() > 1)
rawout << "all" << std::endl;
}
}
// ------------------------------------------------------------------------------------------------
// rsync_tree_to_remote : SHARED COMMAND