Skip to content

Commit

Permalink
[fix]: Fix initial commit nothing appear
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamontat Chantrachirathumrong committed Apr 9, 2018
1 parent c1f47d6 commit dcebcb5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 6 additions & 2 deletions commands/commit_initial.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,16 @@ import (
// AddCommitInital add command of 'commit initial'
func AddCommitInital(emoji bool) cli.Command {
return cli.Command{
Name: "initial",
Aliases: []string{"i", "init"},
Name: "initial",
Aliases: []string{"i", "init"},
Usage: "Create default initial commit",
UsageText: "gitgo commit|cm|c init|i",
Action: func(c *cli.Context) error {
if emoji {
// fmt.Print("create as emoji")
client.MakeGitCommitWithEmoji(true, "🎉", "Initial commit")
} else {
// fmt.Print("create as test")
client.MakeGitCommitWithText(true, "init", "Initial commit")
}
return nil
Expand Down
3 changes: 3 additions & 0 deletions config/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ author:
email: kamontat.c@hotmail.com
license: © 2018 Kamontat Chantrachirathumrong
versions:
-
version: 1.1.4
description: Fix initial commit usage text
-
version: 1.1.3
description: Fix commit format error
Expand Down

0 comments on commit dcebcb5

Please sign in to comment.