Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Nov 25, 2024
1 parent 19bed7e commit 6bb959a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 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.165.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.428.1`](https://github.com/kamangir/awesome-bash-cli).
built by 🌀 [`blue_options-4.166.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.429.1`](https://github.com/kamangir/awesome-bash-cli).
2 changes: 2 additions & 0 deletions abcli/.abcli/tests/help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function test_abcli_help() {
\
"@browse" \
\
"@cat" \
\
"@docker browse " \
"@docker build " \
"@docker clear " \
Expand Down
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.428.1"
VERSION = "9.429.1"

REPO_NAME = "awesome-bash-cli"

Expand Down
8 changes: 5 additions & 3 deletions abcli/help/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from abcli.help.gpu import help_functions as help_gpu
from abcli.help.init import help_init
from abcli.help.latex import help_functions as help_latex
from abcli.help.log import help_functions as help_log
from abcli.help.logging import help_cat
from abcli.help.logging import help_functions as help_log
from abcli.help.metadata import help_functions as help_metadata
from abcli.help.mlflow import help_functions as help_mlflow
from abcli.help.notebooks import help_functions as help_notebooks
Expand All @@ -37,11 +38,10 @@

help_functions.update(
{
"source_caller_suffix_path": help_source_caller_suffix_path,
"source_path": help_source_path,
"aws_batch": help_aws_batch,
"badge": help_badge,
"browse": help_browse,
"cat": help_cat,
"cp": help_cp,
"docker": help_docker,
"download": help_download,
Expand All @@ -63,6 +63,8 @@
"sagemaker": help_sagemaker,
"seed": help_seed,
"sleep": help_sleep,
"source_caller_suffix_path": help_source_caller_suffix_path,
"source_path": help_source_path,
"terraform": help_terraform,
"upload": help_upload,
"watch": help_watch,
Expand Down
14 changes: 14 additions & 0 deletions abcli/help/log.py → abcli/help/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
from blue_options.terminal import show_usage, xtra


def help_cat(
tokens: List[str],
mono: bool,
) -> str:
return show_usage(
[
"@cat",
"<filename>",
],
"cat <filename>.",
mono=mono,
)


def help_log(
tokens: List[str],
mono: bool,
Expand Down

0 comments on commit 6bb959a

Please sign in to comment.