From 5615e824407466d42b4199fc054bf82da9ec892c Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Tue, 13 Apr 2021 17:01:10 +0000 Subject: [PATCH] adding delay and delayBefore setting completion for use in c8y settings update --- pkg/cmd/settings/update/update.manual.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pkg/cmd/settings/update/update.manual.go b/pkg/cmd/settings/update/update.manual.go index 9622c5c8f..a1d8d3cd5 100644 --- a/pkg/cmd/settings/update/update.manual.go +++ b/pkg/cmd/settings/update/update.manual.go @@ -229,6 +229,27 @@ var updateSettingsOptions = map[string]argumentHandler{ "5", }, nil, cobra.ShellCompDirectiveNoFileComp}, + // delay + "defaults.delay": {"defaults.delay", "int", "settings.defaults.delay", []string{ + "0", + "50", + "100", + "250", + "500", + "1000", + "2000", + }, nil, cobra.ShellCompDirectiveNoFileComp}, + + // delayBefore + "defaults.delayBefore": {"defaults.delayBefore", "int", "settings.defaults.delayBefore", []string{ + "0", + "500", + "1000", + "2000", + "5000", + "10000", + }, nil, cobra.ShellCompDirectiveNoFileComp}, + // abortOnErrors "defaults.abortOnErrors": {"defaults.abortOnErrors", "int", "settings.defaults.abortOnErrors", []string{ "1",