mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-21 15:10:22 +00:00
modify
This commit is contained in:
parent
c9d737f57f
commit
cbeaad59bc
2 changed files with 4 additions and 5 deletions
|
@ -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():
|
||||
|
|
|
@ -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):
|
||||
|
@ -50,8 +50,7 @@ def search(name: str):
|
|||
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'''
|
||||
|
|
Loading…
Reference in a new issue