File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
internal/commands/network Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ package network
22
33import (
44 "github.com/UpCloudLtd/upcloud-cli/v3/internal/commands"
5+ "github.com/UpCloudLtd/upcloud-cli/v3/internal/completion"
56 "github.com/UpCloudLtd/upcloud-cli/v3/internal/config"
7+ "github.com/UpCloudLtd/upcloud-cli/v3/internal/namedargs"
68 "github.com/UpCloudLtd/upcloud-cli/v3/internal/output"
79 "github.com/UpCloudLtd/upcloud-cli/v3/internal/ui"
810
@@ -50,6 +52,10 @@ func (s *listCommand) InitCommand() {
5052 s .AddFlags (flags )
5153}
5254
55+ func (s * listCommand ) InitCommandWithConfig (cfg * config.Config ) {
56+ commands .Must (s .Cobra ().RegisterFlagCompletionFunc ("zone" , namedargs .CompletionFunc (completion.Zone {}, cfg )))
57+ }
58+
5359// ExecuteWithoutArguments implements commands.NoArgumentCommand
5460func (s * listCommand ) ExecuteWithoutArguments (exec commands.Executor ) (output.Output , error ) {
5561 svc := exec .Network ()
You can’t perform that action at this time.
0 commit comments