Martin A. Brown
dfc9855991
logic overhaul; abstract inventory creation
...
each function was creating its own inventory; this is not necessary
also, if a user wants only to build a single document, it is not necessary to
scan the entire source and output directory (small, but perceptible speedup to
the end user)
better checking of the various different possible argument types, since an
argument can be a filename, a status_class or a stem
2016-02-29 20:33:33 -08:00
Martin A. Brown
fe520cd583
add logging logic to driver.py
2016-02-27 10:52:35 -08:00
Martin A. Brown
ee68a453d2
exit 1 and report extra args on CLI
2016-02-26 23:18:02 -08:00
Martin A. Brown
e6833f3989
and comma-separated in --verbose mode, too
2016-02-26 22:22:00 -08:00
Martin A. Brown
57055e582d
better production of status list
2016-02-26 22:19:30 -08:00
Martin A. Brown
de514fd41b
user can now specify file, stem or nothing for build
2016-02-26 19:07:05 -08:00
Martin A. Brown
9ffdd1df5d
support SourceDocument as directory nam
...
allow the driver to use the new feature of sources.py and SourceDocument, so
user can refer to simply a directory as the document
2016-02-26 18:04:39 -08:00
Martin A. Brown
c5e14d6ccf
"all" is a good default for --list
2016-02-26 11:24:19 -08:00
Martin A. Brown
bb6fef9635
implement skipping logic in build (driver.py)
2016-02-25 12:29:38 -08:00
Martin A. Brown
859b7f893f
pull logger straight from logging; use abs imports
2016-02-25 11:39:18 -08:00
Martin A. Brown
120d44ffa5
make a bit more noise when building and skipping
2016-02-23 21:58:56 -08:00
Martin A. Brown
11834a17cc
initial work on supporting build verb
2016-02-23 11:05:04 -08:00
Martin A. Brown
5508d1113b
repair detail() and status() generation functions
...
and pass args into all driver functions
2016-02-23 09:00:27 -08:00
Martin A. Brown
d3be338b75
begin logic for user interaction in driver.py
2016-02-22 21:22:42 -08:00
Martin A. Brown
7486a26cc3
initial commit of main 'ldptool' driver program
2016-02-22 16:20:15 -08:00
Martin A. Brown
54a8477a33
renaming to inventory.py (and affected tests)
2016-02-17 16:39:42 -08:00
Martin A. Brown
c425c2a8e8
completed first round of testing of driver code
2016-02-17 13:50:55 -08:00
Martin A. Brown
a8284f3afa
repair mtime comparison logic
...
repair mtime comparison logic for source and output directories after
generalizing the statfiles() function in utils.py
add a __repr__ to the Inventory object
2016-02-17 12:04:37 -08:00
Martin A. Brown
01be89c949
pep8 fixes
2016-02-17 09:12:07 -08:00
Martin A. Brown
c1ccc544a3
adjust logic into an inventory object
2016-02-17 08:35:36 -08:00
Martin A. Brown
bc1c154108
inital commit of driver file for handling the porcelain logic
2016-02-17 00:22:31 -08:00