File prep for GUI
This commit is contained in:
parent
2128fb926b
commit
2707eac861
8 changed files with 244 additions and 102 deletions
19
src/cli.py
Normal file
19
src/cli.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import sys
|
||||
|
||||
from src.messaging import CliOutput
|
||||
from src.processor import FolderProcessor
|
||||
|
||||
if __name__ == "__main__":
|
||||
output = CliOutput()
|
||||
|
||||
if len(sys.argv) == 3:
|
||||
processor = FolderProcessor(sys.argv[1], sys.argv[2], output)
|
||||
processor.process_directory()
|
||||
else:
|
||||
warning_str = [
|
||||
"The CLI utility requires exactly two parameters:",
|
||||
" • input [str] -- The directory to scan through",
|
||||
" • output [str] -- The directory to output through, keeping the input directory's file structure.",
|
||||
" (This directory will be made if necessary)",
|
||||
]
|
||||
output.error("\n".join(warning_str))
|
||||
Loading…
Reference in a new issue