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'''
def __init__(self, status: Optional[str] = 'all'):
def __init__(self, status:str):
self.status = status
def printRepo():

View file

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