stackhub.py 423 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python3
  2. import os, io, sys, platform, shutil, urllib3, json, time, subprocess
  3. import typer
  4. app = typer.Typer()
  5. @app.command()
  6. def module(name: str):
  7. typer.echo(f"Hello {name}")
  8. @app.command()
  9. def application(name: str, formal: bool = False):
  10. if formal:
  11. typer.echo(f"Goodbye Ms. {name}. Have a good day.")
  12. else:
  13. typer.echo(f"Bye {name}!")
  14. if __name__ == "__main__":
  15. app()