No new feature is added to this PR. This PR is for 1) refactoring (mostly moving code lines to a correct place) and 2) adding logger to each module if needed.
Code refactoring
Ordered imports
Renamed croo/croo_args.py's CLI to croo/cli.py and refactored it.
Modified executable bin/croo to point to a correct CLI main().
Added croo/__main__.py for python -m.
Added croo/version.py to prevent circular imports.
Logging
Removed --verbose since it already prints INFO level logs. We still have --debug.
No new feature is added to this PR. This PR is for 1) refactoring (mostly moving code lines to a correct place) and 2) adding logger to each module if needed.
Code refactoring
croo/croo_args.py
's CLI tocroo/cli.py
and refactored it.bin/croo
to point to a correct CLImain()
.croo/__main__.py
forpython -m
.croo/version.py
to prevent circular imports.Logging
--verbose
since it already prints INFO level logs. We still have--debug
.