#!/usr/bin/env python3 from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Type, Union import os, io, sys, platform, shutil, urllib3, json, time, subprocess import model, controller import typer app = typer.Typer() @app.command() def list(): '''print the lists file''' controller.Print.printRepo() @app.command() def create(app_name: str, project_name: Optional[str] = None): '''create one application''' create = controller.Create(app_name, project_name) create.downRepo() create.setEnv() create.upRepo() create.printResult() @app.command() def start(app_name: str, project_name: Optional[str] = None): '''start one application''' pass @app.command() def update(name: str): '''update the local lists cache''' typer.echo(f"Hello {name}") @app.command() def upgrade(name: str): '''upgrade one application''' typer.echo(f"Hello {name}") @app.command() def search(name: str): '''Search application you want to install''' typer.echo(f"Hello {name}") @app.command() 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''' typer.echo(f"Hello {name}") if __name__ == "__main__": app()