-
-
Notifications
You must be signed in to change notification settings - Fork 301
Closed
@guihao-liang
Description
Description
similar to commitlint, I want to interactively try commitizen with pipe.
echo "fix(parser): appending extra parse arms" | cz check
Possible Solution
- read from a string input (from stdin)
- read from a stream (such as /dev/fd/1, stdin too, but you need to know if you are piped). How do I know the python script is called in a pipe?
In this mode, no requirement for git
. When I invoke cz in non-git repo, it will complain
$ cz check file-name
fatal: not a git repository (or any of the parent directories): .git
Additional context
current spec
usage: cz check [-h]
[--commit-msg-file COMMIT_MSG_FILE | --rev-range REV_RANGE]
optional arguments:
-h, --help show this help message and exit
--commit-msg-file COMMIT_MSG_FILE
ask for the name of the temporal file that contains
the commit message. Using it in a git hook script:
MSG_FILE=1ドル
--rev-range REV_RANGE
a range of git rev to check. e.g, master..HEAD
Besides the issue I mentioned, I think this spec is not clear about the positional argument.
Just let me know if you guys have the bandwidth or not. I can try to help during weekends
Metadata
Metadata
Assignees
Labels
No labels