Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Nov 2, 2024
1 parent a266d29 commit e030d60
Show file tree
Hide file tree
Showing 5 changed files with 50 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.148.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.379.1`](https://github.com/kamangir/awesome-bash-cli).
built by 🌀 [`blue_options-4.148.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.380.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.379.1"
VERSION = "9.380.1"

REPO_NAME = "awesome-bash-cli"

Expand Down
21 changes: 21 additions & 0 deletions abcli/help/cp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from typing import List

from blue_options.terminal import show_usage, xtra


def help_cp(
tokens: List[str],
mono: bool,
) -> str:
options = "cp,~download,~relate,~tags,upload"

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

from blue_options.terminal import show_usage, xtra


def help_download(
tokens: List[str],
mono: bool,
) -> str:
options = "filename=<filename>"

open_options = "open,QGIS"

return show_usage(
[
"@download",
f"[{options}]",
"[.|<object-name>]",
f"[{open_options}]",
],
"download object.",
mono=mono,
)
4 changes: 4 additions & 0 deletions abcli/help/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

from blue_options.terminal import show_usage, xtra

from abcli.help.cp import help_cp
from abcli.help.download import help_download
from abcli.help.git import help_functions as help_git
from abcli.help.log import help_functions as help_log
from abcli.help.notebooks import help_functions as help_notebooks
from abcli.help.pytest import help_pytest


help_functions = {
"cp": help_cp,
"download": help_download,
"git": help_git,
"log": help_log,
"notebooks": help_notebooks,
Expand Down

0 comments on commit e030d60

Please sign in to comment.