Skip to content

Commit

Permalink
@help refactor - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Nov 25, 2024
1 parent 6bb959a commit 4a4be76
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 3 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.166.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.429.1`](https://github.com/kamangir/awesome-bash-cli).
built by 🌀 [`blue_options-4.167.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.430.1`](https://github.com/kamangir/awesome-bash-cli).
1 change: 1 addition & 0 deletions abcli/.abcli/tests/help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ function test_abcli_help() {
\
"@watch" \
\
"abcli_log_list" \
"abcli_source_caller_suffix_path" \
"abcli_source_path" \
\
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.429.1"
VERSION = "9.430.1"

REPO_NAME = "awesome-bash-cli"

Expand Down
2 changes: 1 addition & 1 deletion abcli/help/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
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.logging import help_cat
from abcli.help.logging import help_cat, help_log_list
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
Expand Down
22 changes: 22 additions & 0 deletions abcli/help/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,27 @@ def help_log(
)


def help_log_list(
tokens: List[str],
mono: bool,
) -> str:
args = [
'[--before "list of"]',
'[--after "items(s)"]',
"[--delim space | <delim>]",
]

return show_usage(
[
"abcli_log_list",
"<this,that>",
]
+ args,
"log list.",
mono=mono,
)


def help_log_verbose(
tokens: List[str],
mono: bool,
Expand All @@ -50,5 +71,6 @@ def help_log_verbose(

help_functions = {
"": help_log,
"list": help_log_list,
"verbose": help_log_verbose,
}

0 comments on commit 4a4be76

Please sign in to comment.