Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRule checker's CLI usability #618
Comments
This comment has been minimized.
This comment has been minimized.
|
I don't think it should glob in the tool – it should just consume all non-option arguments as input filenames (and stdin if there are none). This matches standard unix tool behaviour and combines best with shell globbing or other tools. A second level of glob expansion would make it practically impossible to pass in filenames that contain special characters, and open a lot of avenues for things to go wrong. In interactive invocation, globbing is the shell's job. |
This comment has been minimized.
This comment has been minimized.
|
You are right - wasn't thinking there, thanks. |
fabxc
changed the title
Rule checker's CLI interface usability
Rule checker's CLI usability
Mar 31, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
Great. I could do the rest now. I doubt there is anyone checking for anything other than non-zero. |
This comment has been minimized.
This comment has been minimized.
fabxc
referenced this issue
Mar 31, 2015
Merged
Increase the usability of the rule_checker CLI. #619
This comment has been minimized.
This comment has been minimized.
|
This can be closed now, right? |
This comment has been minimized.
This comment has been minimized.
|
Yes, the remains are covered by the old ticket. |
juliusv
closed this
Apr 15, 2015
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
fabxc commentedMar 31, 2015
$ rule_checker -hshows flags intended for Prometheus that were defined in imported packages. An explicit flag set for the rule checker should fix that.-rule-file=""flag is inconvenient (and documented wrongly as-ruleFileon the website) . It should simply use the first non-flag argument, i.e.$ rule_checker my/fancy.rules(with-rule-file=""for backwards-compatibility).The file argument should be a glob.-wflag that overwrites the input file. Comments have to be preserved for that, however.)