Remove the print fluff at the stard & end of the pyinfra CLI.
Although I liked these messages, it makes the output less readable and
inconsistent with basically every other CLI.
So long, and thanks for all the fish.
@@ -48,10 +48,6 @@ from .virtualenv import init_virtualenv
# Exit handler
def _exit():
- print()
- print('<-- Thank you, goodbye')
- print()
-
sys.exit(0)
@@ -227,10 +223,6 @@ def _main(
if not debug and not sys.warnoptions:
warnings.simplefilter('ignore')
- print()
- print('### {0}'.format(click.style('Welcome to pyinfra', bold=True)))
- print()
-
# Setup logging
log_level = logging.DEBUG if debug else logging.INFO
setup_logging(log_level)
@@ -415,6 +407,7 @@ def _main(
run_hook(state, 'before_connect', hook_data)
# Connect to all the servers
+ print()
print('--> Connecting to hosts...')
connect_all(state)
