Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate --watch and --ext flags in favour of stdin arguments #6

Open
maaslalani opened this issue Jan 2, 2021 · 0 comments
Open

Comments

@maaslalani
Copy link
Owner

Is your feature request related to a problem? Please describe.
Deprecate --watch and --ext flags in favour of stdin arguments.
Since you can use stdin to get a list of filenames the current flags are redundant because --watch specifies a directory and --ext specifies the extension. Using stdin can always replace these in a more unix way.

For example:

  1. Watching all markdown files and running glow on README.md
crow -e .md glow README.md
fd .md | crow glow README.md
  1. Watching all go files in the src directory and rerunning tests
crow -w src -e go go test ./...
fd src -e go | crow go test ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant