Skip to content

Commit fe8f725

Browse files
authored
fix: update version to v0.2.5 and rename git-source-repo flag (#782)
- Bump version number in Makefile. - Rename the git-source-repo flag to git-src-repo for consistency. - Update documentation to reflect the new flag name. ## What <!-- What is changing in this PR? --> ## Why <!-- Why are these changes being made? --> ## Notes <!-- Add any additional notes here -->
1 parent d37414c commit fe8f725

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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.4
1+
VERSION=v0.2.5
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
@@ -148,9 +148,9 @@ func newGitSourceCreateCommand() *cobra.Command {
148148
cmd.Flags().BoolVar(&createRepo, "create-repo", false, "If true, will create the specified git-source repo in case it doesn't already exist")
149149
cmd.Flags().StringVar(&include, "include", "", "files to include. can be either filenames or a glob")
150150
cmd.Flags().StringVar(&exclude, "exclude", "", "files to exclude. can be either filenames or a glob")
151-
cmd.Flags().StringVar(&repo, "git-source-repo", "", "Repository URL [%sGIT_SOURCE_GIT_REPO]")
151+
cmd.Flags().StringVar(&repo, "git-src-repo", "", "Repository URL [%sGIT_SOURCE_GIT_REPO]")
152152

153-
util.Die(viper.BindEnv("git-source-repo", "GIT_SOURCE_GIT_REPO"))
153+
util.Die(viper.BindEnv("git-src-repo", "GIT_SOURCE_GIT_REPO"))
154154

155155
return cmd
156156
}

docs/commands/cli-v2_git-source_create.md

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

1919
```
20-
--create-repo If true, will create the specified git-source repo in case it doesn't already exist
21-
--exclude string files to exclude. can be either filenames or a glob
22-
--git-source-repo string Repository URL [%sGIT_SOURCE_GIT_REPO]
23-
-h, --help help for create
24-
--include string files to include. can be either filenames or a glob
20+
--create-repo If true, will create the specified git-source repo in case it doesn't already exist
21+
--exclude string files to exclude. can be either filenames or a glob
22+
--git-src-repo string Repository URL [%sGIT_SOURCE_GIT_REPO]
23+
-h, --help help for create
24+
--include string files to include. can be either filenames or a glob
2525
```
2626

2727
### Options inherited from parent commands

0 commit comments

Comments
 (0)