mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +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'''
|
'''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():
|
||||||
|
|
|
@ -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):
|
||||||
|
@ -51,7 +51,6 @@ 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'''
|
||||||
|
|
Loading…
Reference in a new issue