This commit is contained in:
chendelin1982 2021-10-31 18:00:02 +08:00
parent c9d737f57f
commit cbeaad59bc
2 changed files with 4 additions and 5 deletions

View file

@ -11,7 +11,7 @@ class Print:
'''display all any information you want''' '''display all any information you want'''
def __init__(self, status: Optional[str] = 'all'): def __init__(self, status:str):
self.status = status self.status = status
def printRepo(): def printRepo():

View file

@ -11,8 +11,8 @@ app = typer.Typer()
@app.command() @app.command()
def ls(status: Optional[str] = 'all'): def ls(status: Optional[str] = 'all'):
'''list all the project have installed''' '''list all the project have installed'''
print = controller.Print(status) myprint = controller.Print(status)
print.lsProject() myprint.lsProject()
@app.command() @app.command()
def create(app_name: str, project_name: Optional[str] = None): def create(app_name: str, project_name: Optional[str] = None):
@ -50,8 +50,7 @@ def search(name: str):
def show(name: str): def show(name: str):
'''show the detail of application''' '''show the detail of application'''
typer.echo(f"Hello {name}") typer.echo(f"Hello {name}")
@app.command() @app.command()
def package(name: str): def package(name: str):
'''package one application for no network environment''' '''package one application for no network environment'''