Skip to content

Commit

Permalink
lxc: Add --mode completions for lxc move
Browse files Browse the repository at this point in the history
Signed-off-by: Kadin Sayani <[email protected]>
  • Loading branch information
kadinsayani committed Jan 7, 2025
1 parent 8c82d8c commit 0e04efc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lxc/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ lxc move <instance>/<old snapshot name> <instance>/<new snapshot name>
return nil, cobra.ShellCompDirectiveNoFileComp
}

_ = cmd.RegisterFlagCompletionFunc("mode", func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
return []string{"pull", "push", "relay"}, cobra.ShellCompDirectiveNoFileComp
})

return cmd
}

Expand Down

0 comments on commit 0e04efc

Please sign in to comment.