0.2.5 ā€¢ Published 5 years ago

fancy-commit v0.2.5

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Ohhh so fancy. Super simple cli for writing fancy commit messages

PRs Welcome

example gif

image

šŸš€ Install

npm install -g fancy-commit

šŸ¦ Alias

I chose the name fancy-commit as it was nice and wouldn't clash with any other cli tool. I recomend aliasing it to something else in your command line. For bash I add the following line to my .bashrc file šŸ˜Š

alias gc='fancy-commit'

šŸ¤Ÿ Usage

The basic functionality of this package can be run simply via fancy-commit. On its own, this command will use default values for all settings. This can be overwritten via config however!

šŸŽ© Commands

- fancy-commit setup

This command will write a config file for you to change. It will be located in your home directory and called .fancy_commit.

- fancy-commit reset

Mess up your config file? This command will reset it to the defaults.

- fancy-commit clean

Don't need custom config? Run this command to delete your .fancy_commit file.

āš™ļø Config

fancy-commit is built on config and offers a whole bunch of settings you can change to your liking.

config keydescriptiondefaultpossible values
promptsAn array of commit prompts for you to use.see hereArray items be in the format of { text: 'Feature', emoji: 'šŸš€' }
skipVerifyingCommitSkip verifying your commit. Adds --no-verify to the commit to skip and pre-commit checks.ask_nalways, never, ask_y, ask_n (prompt config)
allowEmptyCommitAllow commits to be empty.ask_nalways, never, ask_y, ask_n (prompt config)
signCommitsSign your git commits. Most commonly used to GPG sign your commits.ask_nalways, never, ask_y, ask_n (prompt config)
warnNoChangesWarn you if your trying to make a commit with no changes.truetrue, false
mustBeInsideWorkingTreeExit fancy-commit if youre not inside a git working tree.truetrue, false
useGithubEmojiUse github emoji markup in commit messages in place of Unicode emoji chracters. e.g. :dog: instead of šŸ¶.truetrue, false

ā‰ļø Prompt config

Prompt config has 4 possible values

  • always - Don't Ask, just always do it.
  • never - Don't Ask, but never do it.
  • ask_y - Ask every time, defaulting to 'y' (yes).
  • ask_n - Ask every time, defaulting to 'n' (no).
1.0.0-alpha.1

5 years ago

1.0.0-alpha.0

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago