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:
parent
a085586baa
commit
d99f26e3cf
3 changed files with 4 additions and 4 deletions
|
@ -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__":
|
||||||
|
|
|
@ -11,7 +11,7 @@ def verbosity():
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
# pass down
|
# pass down
|
||||||
Runner().run()
|
return Runner().run()
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue