Skip to content

Commit

Permalink
lxc: Remove extraneous space from lxc move completion
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 0e04efc commit 4cf0782
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lxc/move.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ lxc move <instance>/<old snapshot name> <instance>/<new snapshot name>

cmd.ValidArgsFunction = func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
if len(args) == 0 {
return c.global.cmpInstances(toComplete)
instances, directives := c.global.cmpInstances(toComplete)
return instances, directives | cobra.ShellCompDirectiveNoSpace
}

if len(args) == 1 {
Expand Down

0 comments on commit 4cf0782

Please sign in to comment.