Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

interactively pipe stream to cz check #200

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

  1. read from a string input (from stdin)
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /