Skip to content

Commit f3ba936

Browse files
authored
fix(autocomplete): apply default values to list on arg completion (#2833)
1 parent 0dc7913 commit f3ba936

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

internal/core/autocomplete_utils.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ func AutocompleteGetArg(ctx context.Context, cmd *Command, argSpec *ArgSpec, com
8080
}
8181
}
8282

83+
// Apply default arguments
84+
listRawArgs = ApplyDefaultValues(ctx, listCmd.ArgSpecs, listRawArgs)
85+
8386
// Unmarshal args.
8487
// After that we are done working with rawArgs
8588
// and will be working with cmdArgs.

0 commit comments

Comments
 (0)