Commit Graph

16 Commits

Author SHA1 Message Date
Samantha Baldwin
d1ed80d62a argparse & logging (#92)
* introduce logcommand.Lager, Whipper(); use argparse for whipper image commands, stub logging

* update Lager docstring to mention config.Config()

* make incorrect subcommand and --version work on toplevel command

* migrate accurip show, expand Lager, do not attempt to return from Lager.__init__.

* migrate offset find, add Lager.error

* correct offset find drive symlink handling

* migrate drive

* change Lager.__init__(prog) to arg from kwarg

* but actually

* remove Whipper.usage

* add and use Lager.device_option() context manager

* help I married an axe murderer

* use unified options namespace for entire command tree

* migrate whipper cd without comprehensive config loading

* switch to logging module

- use logging instead of flog for non-extern modules
- use WHIPPER_DEBUG and WHIPPER_LOGFILE env variables

* convert self.log calls to logger.debug

* convert self.error calls to logger.error

* remove log.Loggable, use logger not logging

* Logging conversion continues

- Convert log.* calls to logger.*
- Remove morituri.common.log imports

* remove morituri.common.log from tests

* remove extern/flog, bare minimum Debug conversion

* update README for logging changes

* update soxi to use logging

* refactor Lager for more declarative subcommands

* Refactor Lager.device_option:

- inline into __init__
- throw IOError instead of Exception for missing drives
- remove CommandError checking in rip/main

* rename rip to whipper in rip.main

* convert rip.debug commands

* Rename logcommand.Lager to command.BaseCommand

- remove command.CommandError occurrences
- remove python-command external module

* remove submodules from README, update rclog formatter

* update minor ambiguity in readme for command invocation

* update version number to match setup.py

* remove gitmodules

* update version number in tests as well (boo)

* convert logger.error to logger.critical

* Change morituri.rip to morituri.command

- mv common.command to command.basecommand
- move TEMPLATES used only by rip.cd out of rip.common
- update entry point for command to command.main

* update basecommand documentation

* go pyflaking: import fixing

* replace self.stdout with sys.stdout

* remove BaseCommand.config, alphabetise imports

* convert self.stdXXX leftovers

* convert last getRootCommand to config.Config

* convert last getExceptionMessage's to str

* change musicbrainz useragent to whipper
2016-12-20 23:11:30 +01:00
Samantha Baldwin
063876b575 use setuptools, remove autohell, use raw make for src/ 2016-10-19 17:54:01 -04:00
Thomas Vander Stichele
1a047a2ebe hack to get proper revision before generating configure/*py 2013-08-24 01:51:44 +02:00
Thomas Vander Stichele
82404900fd fix syntax error 2013-07-30 12:36:21 +02:00
Thomas Vander Stichele
85300a9529 get revision from git; make it work everywhere 2013-07-30 11:23:59 +02:00
Thomas Vander Stichele
05cb0958cd ignore more 2013-01-13 16:04:24 +01:00
Thomas Vander Stichele
cba7dbe41a pep8 fixes 2012-11-29 19:54:46 +00:00
Thomas Vander Stichele
cd295537fc * configure.ac:
* morituri/configure/installed.py.in:
	* morituri/configure/uninstalled.py.in:
	  Create configure.configure.pluginsdir
2012-11-25 18:21:11 +00:00
Thomas Vander Stichele
0fab4515c6 pep8 fixes 2012-11-11 23:00:37 +00:00
Thomas Vander Stichele
b0db74b5a8 pep8 fixes 2012-11-11 22:24:03 +00:00
Thomas Vander Stichele
f3696f22d1 * morituri/configure/configure.py (svn:keywords):
Expand revision.
	* morituri/configure/configure.py:
	  Set it on the revision local.
2011-05-18 23:56:27 +00:00
Thomas Vander Stichele
41c92fcda4 pychecker fixes 2009-05-22 20:44:10 +00:00
Thomas Vander Stichele
e51d747a93 update for build 2009-05-22 20:39:11 +00:00
Thomas Vander Stichele
3535f9a606 add configure 2009-05-22 20:35:32 +00:00
Thomas Vander Stichele
4a12d282f9 add init 2009-05-22 20:35:08 +00:00
Thomas Vander Stichele
f0192af6d8 add configure 2009-05-22 20:31:32 +00:00