node-commit-msg icon indicating copy to clipboard operation
node-commit-msg copied to clipboard

Non-verbose mode

Open shreyasminocha opened this issue 8 years ago • 6 comments

I find the default output rather verbose. Would it be possible to add an option to show output similar to git log --oneline? For example, this, except color coded?

c32d580 Remove unneeded reset styles
ade8c71 Add shields to README
9284eb9 1.1.0
f37514d Add a reset (#1)
4f51d86 Show only CDN URL in usage instructions
2ff5870 Add screenshots
7c23aa5 Allow tests to work with an HTTP server
8e43d14 Add tests
a89cbec Split source file into multiple files
3f8df22 Switch to jsDelivr CDN
eb5e6da Bump version in package file
7eb1c79 Ignore sublime project file
902e23b Change <a> and <pre> colours
da93838 Add sublime project file
bdb3c59 Revert bf1348, don't force roboto onto user
bf13483 Add roboto font-face declaration
cdb8632 Fix Milligram url
3ba141f Fix license url in stylesheet
f8396e9 Initial commit

shreyasminocha avatar Jan 19 '18 07:01 shreyasminocha

Where to add this option and what output you refer to as verbose?

clns avatar Jan 19 '18 07:01 clns

I'm talking about the commit-msg CLI. For example the output when I run commit-msg github git/git.

shreyasminocha avatar Jan 19 '18 08:01 shreyasminocha

I'm sorry but I'm still a bit confused. Are you talking about the git commit-msg ... command that allows editing commits? The only other CLI is the validate script that validates commit messages directly. There's no CLI like you described.

clns avatar Jan 19 '18 09:01 clns

Here's what I did from the beginning:

  • npm install -g commit-msg
  • Navigate to a git repository
  • Run: commit-msg -h
  Usage: commit-msg [options] [command]

  Validate commit messages and output all valid commmits to stdout and invalid ones to stderr.

  Options:

    --no-colors         output without any colors
    -c, --config [s]    the dir path to the package.json config to use (default: /Users/shreyasminocha/dev/Minima)
    --extra-config [o]  extra config object (as json) to overwrite the existing config (default: {})
    -h, --help          output usage information


  Commands:

  * <message...>                 Validate the given message(s)
  file <file...>                 Validate the message(s) read from file(s)
  stdin [options]                Validate commit hashes read from stdin, one per line or separated by spaces;
                                 each commit should be from the current directory's repository
  github [options] <repository>  Validate a remote repository from GitHub

shreyasminocha avatar Jan 19 '18 09:01 shreyasminocha

Ok, thanks for the clarification. I'll add the --oneline option to the command to make it similar to git log --oneline.

clns avatar Jan 19 '18 09:01 clns

That should be perfect. Thanks for the quick response 👍.

shreyasminocha avatar Jan 19 '18 10:01 shreyasminocha