From cbeaad59bc18e01540b38191dc7d1fe03e082b47 Mon Sep 17 00:00:00 2001 From: chendelin1982 Date: Sun, 31 Oct 2021 18:00:02 +0800 Subject: [PATCH] modify --- cli/controller.py | 2 +- cli/stackhub.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cli/controller.py b/cli/controller.py index a58170e3..184ca964 100644 --- a/cli/controller.py +++ b/cli/controller.py @@ -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(): diff --git a/cli/stackhub.py b/cli/stackhub.py index e7039857..67d5e5de 100644 --- a/cli/stackhub.py +++ b/cli/stackhub.py @@ -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'''