mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-26 02:18:21 -04:00
WIP: Improve config parsing, make --verbose and --config-file global options
Bonus: Generalize and reuse cmd_ssh() Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
This commit is contained in:
parent
4cf608eeb6
commit
144acee10f
12 changed files with 122 additions and 104 deletions
6
cache.py
6
cache.py
|
@ -1,5 +1,4 @@
|
|||
import shutil
|
||||
from logger import setup_logging, verbose_option
|
||||
import click
|
||||
import os
|
||||
|
||||
|
@ -10,10 +9,7 @@ def cmd_cache():
|
|||
|
||||
|
||||
@click.command(name='clean')
|
||||
@verbose_option
|
||||
def cmd_clean(verbose):
|
||||
setup_logging(verbose)
|
||||
|
||||
def cmd_clean():
|
||||
for dir in ['/chroot', '/var/cache/pacman/pkg', '/var/cache/jumpdrive']:
|
||||
for file in os.listdir(dir):
|
||||
path = os.path.join(dir, file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue