Skip to content

Commit d37414c

Browse files
authored
fix: update flag names for git source repository command (#781)
## What fix the `git-source create` command flag to use `--git-src-repo` instead of `--git-source-repo` ## Why the change was done by mistake ## Notes <!-- Add any additional notes here -->
1 parent 7431893 commit d37414c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=v0.2.3
1+
VERSION=v0.2.4
22

33
OUT_DIR=dist
44
YEAR?=$(shell date +"%Y")

cmd/commands/git-source.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ func newGitSourceEditCommand() *cobra.Command {
368368

369369
gsName = args[1]
370370
if repo == "" {
371-
return fmt.Errorf("must enter a valid value to --git-source-repo. Example: https://github.com/owner/repo-name.git/path/to/dir")
371+
return fmt.Errorf("must enter a valid value to --git-src-repo. Example: https://github.com/owner/repo-name.git/path/to/dir")
372372
}
373373

374374
return nil
@@ -396,7 +396,7 @@ func newGitSourceEditCommand() *cobra.Command {
396396

397397
cmd.Flags().StringVar(&include, "include", "", "files to include. can be either filenames or a glob")
398398
cmd.Flags().StringVar(&exclude, "exclude", "", "files to exclude. can be either filenames or a glob")
399-
cmd.Flags().StringVar(&repo, "git-source-repo", "", "Repository URL [%sGIT_SOURCE_GIT_REPO]")
399+
cmd.Flags().StringVar(&repo, "git-src-repo", "", "Repository URL [%sGIT_SOURCE_GIT_REPO]")
400400

401401
return cmd
402402
}

docs/commands/cli-v2_git-source_edit.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ cli-v2 git-source edit RUNTIME_NAME GITSOURCE_NAME [flags]
1717
### Options
1818

1919
```
20-
--exclude string files to exclude. can be either filenames or a glob
21-
--git-source-repo string Repository URL [%sGIT_SOURCE_GIT_REPO]
22-
-h, --help help for edit
23-
--include string files to include. can be either filenames or a glob
20+
--exclude string files to exclude. can be either filenames or a glob
21+
--git-src-repo string Repository URL [%sGIT_SOURCE_GIT_REPO]
22+
-h, --help help for edit
23+
--include string files to include. can be either filenames or a glob
2424
```
2525

2626
### Options inherited from parent commands

0 commit comments

Comments
 (0)