Skip to content

Commit

Permalink
feat(please): support --chlog (changelog), --chash (commit hash)
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Aug 14, 2018
1 parent d0397ce commit 39595fd
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions please
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,19 @@ $(ok Scope:)
$(info minor) $(comment "Bumps the <minor> part of semver.")
$(ok Options:)
$(info "-v --vfile") $(comment "Forces creation of VERSION file.")
$(info "-c --chlog") $(comment "Forces creation of CHANGELOG.md file.")
$(info "-h --help") $(comment "Show help information and usage.")
$(info "-u --update") $(comment "Update ${PLIZ} to latest version.")
$(info "-H --chash") $(comment "Prepends commit hash into log.")
$(info "-p --public") $(comment "Set scoped npm package for public access.")
$(info "-u --update") $(comment "Update ${PLIZ} to latest version.")
$(info "-v --vfile") $(comment "Forces creation of VERSION file.")
$(ok Examples:)
please
please --update
please --vfile
please --vfile --chash
please minor --public
please major --vfile
please major --vfile --chlog
USAGE
exit 0
}
Expand Down Expand Up @@ -163,6 +165,14 @@ do
PUBLIC="--access=public"
shift 1
;;
-c | --chlog)
CHLOG=1
shift 1
;;
-H | --chash)
GCFMT="[%h](https://github.com/${REPO}/commit/%h) %s"
shift 1
;;
minor)
MINOR=1
shift 1
Expand Down

0 comments on commit 39595fd

Please sign in to comment.