Skip to content

Commit

Permalink
fix #11 提供基本的docker容器
Browse files Browse the repository at this point in the history
同时修正命令可以在安装以后正常使用
  • Loading branch information
renweibo committed May 13, 2022
1 parent 9cd68ee commit 33effec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | d
&& rm -rf /var/lib/apt/lists/*
USER jovyan
RUN pip3 install -U flask sh httpie openpyxl typer
RUN pip3 install -U -r requirements_dev.txt
RUN pip3 install -U -r requirements_dev.txt
CMD ati18n
6 changes: 3 additions & 3 deletions ati18n/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ati18n.ati18n import Ati18n


app = typer.Typer(help="Awesome CLI user manager.")
main = typer.Typer(help="Awesome CLI user manager.")


class APPType(str, Enum):
Expand All @@ -14,7 +14,7 @@ class APPType(str, Enum):
Flask = "Flask"


@app.command()
@main.command()
def check(path: Path = typer.Argument(..., help="应用路径"),
app_type: APPType = typer.Option("Java", "--type", "-t", help="specify the app type. 指定应用类型")):

Expand All @@ -30,4 +30,4 @@ def check(path: Path = typer.Argument(..., help="应用路径"),


if __name__ == "__main__":
app()
main()

0 comments on commit 33effec

Please sign in to comment.