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,8 +6,8 @@ import appdirs
|
|||
import uuid
|
||||
|
||||
if os.getenv('KUPFERBOOTSTRAP_DOCKER') == '1':
|
||||
from main import cli
|
||||
cli(prog_name='kupferbootstrap')
|
||||
from main import main
|
||||
main()
|
||||
else:
|
||||
script_path = os.path.dirname(os.path.abspath(__file__))
|
||||
with open(os.path.join(script_path, 'version.txt')) as version_file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue