Skip to content

Commit 4e10072

Browse files
author
R0n0066
committed
no-story (update): Moved package.json to package folder
1 parent 3c2fb41 commit 4e10072

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

cmd/cmd-packr.go

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/version.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ var jiraCmd = &cobra.Command{
3434
Short: "Display current version",
3535
Long: `version Display the current version of cmf`,
3636
Run: func(cmd *cobra.Command, args []string) {
37-
box := packr.NewBox("../")
37+
box := packr.NewBox("../package")
3838
raw := box.Bytes("package.json")
3939
var p struct {
40-
Version string `json:"version"`
40+
Version string `json:"version"`
41+
Description string `json:"description"`
4142
}
4243
json.Unmarshal(raw, &p)
43-
fmt.Println("CMF Version:")
44+
fmt.Println(p.Description)
4445
fmt.Println("v" + p.Version)
4546
},
4647
}

package.json renamed to package/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"license": "MIT",
1111
"goBinary": {
1212
"name": "cmf",
13-
"path": "./bin",
13+
"path": "../bin",
1414
"url": "https://github.com/WalmartDigital/commit-message-formatter/releases/download/v{{version}}/cmf_{{version}}_{{platform}}_{{arch}}.tar.gz"
1515
},
1616
"dependencies": {

0 commit comments

Comments
 (0)