Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Nov 6, 2024
1 parent 810ff45 commit 8e05805
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ create a copy of [`sample.env`](./abcli/sample.env) as `.env` and fill in the se

[![pylint](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/awesome-bash-cli/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/awesome-bash-cli/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/abcli.svg)](https://pypi.org/project/abcli/) [![PyPI - Downloads](https://img.shields.io/pypi/dd/abcli)](https://pypistats.org/packages/abcli)

built by 🌀 [`blue_options-4.150.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.404.1`](https://github.com/kamangir/awesome-bash-cli).
built by 🌀 [`blue_options-4.151.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.405.1`](https://github.com/kamangir/awesome-bash-cli).
2 changes: 1 addition & 1 deletion abcli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

DESCRIPTION = f"{ICON} a language to speak AI."

VERSION = "9.404.1"
VERSION = "9.405.1"

REPO_NAME = "awesome-bash-cli"

Expand Down
4 changes: 4 additions & 0 deletions abcli/help/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@
from abcli.help.mlflow import help_functions as help_mlflow
from abcli.help.notebooks import help_functions as help_notebooks
from abcli.help.plugins import help_functions as help_plugins
from abcli.help.open import help_open
from abcli.help.pytest import help_pytest
from abcli.help.repeat import help_repeat
from abcli.help.sagemaker import help_functions as help_sagemaker
from abcli.help.sleep import help_sleep
from abcli.help.terraform import help_functions as help_terraform
from abcli.help.upload import help_upload
from abcli.help.watch import help_watch


Expand All @@ -36,11 +38,13 @@
"metadata": help_metadata,
"mlflow": help_mlflow,
"notebooks": help_notebooks,
"open": help_open,
"plugins": help_plugins,
"pytest": help_pytest,
"repeat": help_repeat,
"sagemaker": help_sagemaker,
"sleep": help_sleep,
"terraform": help_terraform,
"upload": help_upload,
"watch": help_watch,
}
25 changes: 25 additions & 0 deletions abcli/help/open.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from typing import List

from blue_options.terminal import show_usage, xtra


def help_open(
tokens: List[str],
mono: bool,
) -> str:
options = "".join(
[
xtra("extension=<extension>,filename=<filename>,", mono=mono),
"QGIS",
]
)

return show_usage(
[
"@open",
f"[{options}]",
"[.|<object-name>]",
],
"open <object-name>.",
mono=mono,
)
27 changes: 27 additions & 0 deletions abcli/help/upload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from typing import List

from blue_options.terminal import show_usage, xtra


def help_upload(
tokens: List[str],
mono: bool,
) -> str:
options = "".join(
[
"filename=<filename>",
xtra(",mlflow,no_mlflow,~open,", mono=mono),
"solid",
xtra(",~warn_if_exists", mono=mono),
]
)

return show_usage(
[
"@upload",
f"[{options}]",
"[.|<object-name>]",
],
"upload <object-name>.",
mono=mono,
)

0 comments on commit 8e05805

Please sign in to comment.