Bug 578366
| Summary: | Quiet mode to disable ANSI codes in log files | ||
|---|---|---|---|
| Product: | [Community] Publican | Reporter: | Sean Flanigan <sflaniga> |
| Component: | publican | Assignee: | Jeff Fearn 🐞 <jfearn> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 1.6 | CC: | jfearn, mmcallis, nb, publican-list, rlandman |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | publican-1.6.3-0.fc12 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-05-17 18:56:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Sean Flanigan
2010-03-31 03:14:12 UTC
--quiet and --nocolours options tested and working in 1.6.1-0.t29 publican-1.6.2-0.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/publican-1.6.2-0.fc12 publican-1.6.2-0.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/publican-1.6.2-0.fc11 publican-1.6.2-0.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/publican-1.6.2-0.fc13 Thanks Jeff; it looks good, and I'm glad to see colour spelt better than I had dared hope!
Just a few minor things:
1. The descriptions of the new options don't line up with the other global options, at least on my terminal:
ie:
-v Display the version of Publican
--config <file> Use a nonstandard config file
--nocolours Disable ANSI colourisation of logging
--quiet Disable all logging
This is purely cosmetic, but it might bother some people.
2. Also, I found that these new options had to be entered after the action, eg
publican build --quiet
not
publican --quiet build
The usage help (and the Publican documentation) seem to assume that global options never appear together with an action, but my experience with other command line tools does lead me to expect that global options will precede actions, eg:
svn --non-interactive update
3. The Publican documentation hasn't been updated to describe these options, but I don't know if that's significant at this point.
Thanks for the quick turnaround!
publican-1.6.2-0.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. publican-1.6.2-0.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. This was confusing so I renamed and reordered the options and the help texts. Mainly because there are 3 kinds of options and only 2 were appearing in the helps texts >_<
Renamed 'Global Options' to 'Command Options' these apply only to the publican command, not to actions.
Renamed 'Options' to 'Action Options' these apply only to actions not to the publican command.
Displayed 'Common Options', common_config, nocolour etc, as part of the action help text.
$ bin/publican --help
Usage:
publican <command options>
publican <action> <action options>
Command Options
--help Display help message
--man Display the man page
--help_actions Display a list of valid actions
-v Display the version of Publican
Run: 'publican <action> --help' for details on action usage
Valid actions are:
build Transform XML to other formats (pdf, html, html-single, etc)
...
$ bin/publican build --help
build
Transform XML to other formats (pdf, html, html-single, etc)
Options:
--help Display help message
--config=s Use a nonstandard config file
--common_config=s Override path to Common_Config directory
--common_content=s Override path to Common_Content directory
--nocolours Disable ANSI colourisation of logging.
--quiet Disable all logging.
--formats=<FORMATS> Comma-separated list of formats, for example: html,pdf,html-single,html-desktop,txt,epub
--langs=<LANGS> Comma-separated list of languages, for example: en-US,de-DE,all
...
Will begin bugging Rudi to update docs :)
publican-1.6.2-0.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. FYI I opened https://bugzilla.redhat.com/show_bug.cgi?id=581090 to address the naming issue in the next major version, since I think it's too disruptive for a minor version. publican-1.6.3-0.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/publican-1.6.3-0.fc13 publican-1.6.3-0.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/publican-1.6.3-0.fc12 publican-1.6.3-0.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update publican'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/publican-1.6.3-0.fc12 publican-1.6.3-0.fc13 has been pushed to the Fedora 13 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update publican'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/publican-1.6.3-0.fc13 publican-1.6.3-0.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. publican-1.6.3-0.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |