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()) set_verbosity(logging.getLogger(), log_handler, kiwi.verbosity())
# run the app # run the app
kiwi.run() if not kiwi.run():
quit(1)
if __name__ == "__main__": if __name__ == "__main__":

View file

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

View file

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