mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 23:20:23 +00:00
24 lines
423 B
Python
24 lines
423 B
Python
#!/usr/bin/python3
|
|
import os, io, sys, platform, shutil, urllib3, json, time, subprocess
|
|
|
|
|
|
import typer
|
|
|
|
app = typer.Typer()
|
|
|
|
|
|
@app.command()
|
|
def module(name: str):
|
|
typer.echo(f"Hello {name}")
|
|
|
|
|
|
@app.command()
|
|
def application(name: str, formal: bool = False):
|
|
if formal:
|
|
typer.echo(f"Goodbye Ms. {name}. Have a good day.")
|
|
else:
|
|
typer.echo(f"Bye {name}!")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app()
|