Skip to content

Commit fbdedfb

Browse files
scoptwpayne
authored andcommitted
feat: Complete --progress and --working-tree option args
1 parent 6b013c7 commit fbdedfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/cmd/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,9 +1760,11 @@ func (c *Config) newRootCmd() (*cobra.Command, error) {
17601760
rootCmd.RegisterFlagCompletionFunc("color", autoBoolFlagCompletionFunc),
17611761
rootCmd.RegisterFlagCompletionFunc("config-format", c.configFormat.FlagCompletionFunc()),
17621762
rootCmd.RegisterFlagCompletionFunc("mode", chezmoi.ModeFlagCompletionFunc),
1763+
rootCmd.RegisterFlagCompletionFunc("progress", autoBoolFlagCompletionFunc),
17631764
rootCmd.RegisterFlagCompletionFunc("refresh-externals", chezmoi.RefreshExternalsFlagCompletionFunc),
17641765
rootCmd.RegisterFlagCompletionFunc("use-builtin-age", autoBoolFlagCompletionFunc),
17651766
rootCmd.RegisterFlagCompletionFunc("use-builtin-git", autoBoolFlagCompletionFunc),
1767+
rootCmd.MarkPersistentFlagDirname("working-tree"),
17661768
); err != nil {
17671769
return nil, err
17681770
}

0 commit comments

Comments
 (0)