Skip to content

Commit 175521a

Browse files
authored
Merge pull request #3314 from carapace-sh/git-repo-flags
git: repo - added missing flags
2 parents d31b46f + 999114b commit 175521a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

completers/common/git_completer/cmd/repo_info.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ var repo_infoCmd = &cobra.Command{
1414
func init() {
1515
carapace.Gen(repo_infoCmd).Standalone()
1616

17+
repo_infoCmd.Flags().Bool("all", false, "print all keys/values")
1718
repo_infoCmd.Flags().String("format", "", "output format")
18-
repo_infoCmd.Flags().BoolS("z", "z", false, "alias for --format=nul")
19+
repo_infoCmd.Flags().Bool("no-all", false, "do not print all keys/values")
20+
repo_infoCmd.Flags().BoolS("z", "z", false, "synonym for --format=nul")
1921
repoCmd.AddCommand(repo_infoCmd)
2022

2123
repo_infoCmd.MarkFlagsMutuallyExclusive("format", "z")

completers/common/git_completer/cmd/repo_structure.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ func init() {
1515
carapace.Gen(repo_structureCmd).Standalone()
1616

1717
repo_structureCmd.Flags().String("format", "", "output format")
18+
repo_structureCmd.Flags().Bool("no-progress", false, "do not show progress")
19+
repo_structureCmd.Flags().Bool("progress", false, "show progress")
20+
repo_structureCmd.Flags().BoolS("z", "z", false, "synonym for --format=nul")
1821
repoCmd.AddCommand(repo_structureCmd)
1922

2023
carapace.Gen(repo_structureCmd).FlagCompletion(carapace.ActionMap{

0 commit comments

Comments
 (0)