1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-11-21 20:33:00 +00:00

exit status

This commit is contained in:
Jörn-Michael Miehe 2020-08-19 17:42:09 +02:00
parent a085586baa
commit d99f26e3cf
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,8 @@ def main():
set_verbosity(logging.getLogger(), log_handler, kiwi.verbosity())
# run the app
kiwi.run()
if not kiwi.run():
quit(1)
if __name__ == "__main__":

View file

@ -11,7 +11,7 @@ def verbosity():
def run():
# pass down
Runner().run()
return Runner().run()
__all__ = [

View file

@ -29,7 +29,7 @@ class InitCommand(SubCommand):
def __init__(self):
super().__init__(
'init',
action="Creating",
action=f"Initializing '{KIWI_CONF_NAME}' in",
description="Create a new kiwi-config instance"
)
@ -41,7 +41,6 @@ class InitCommand(SubCommand):
)
def _run_instance(self, runner, args):
logging.info(f"Initializing '{KIWI_CONF_NAME}' in '{os.getcwd()}'")
config = LoadedConfig.get()
# check force switch