Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Nov 10, 2024
1 parent fcdefa3 commit a9cfed9
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 263 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.153.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.412.1`](https://github.com/kamangir/awesome-bash-cli).
built by 🌀 [`blue_options-4.154.1`](https://github.com/kamangir/awesome-bash-cli), based on 🪄 [`abcli-9.413.1`](https://github.com/kamangir/awesome-bash-cli).
261 changes: 0 additions & 261 deletions abcli/.abcli/plugins/seed.sh

This file was deleted.

4 changes: 4 additions & 0 deletions abcli/.abcli/tests/help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ function test_abcli_help() {
\
"@repeat" \
\
"@seed" \
"@seed eject" \
"@seed list" \
\
"@sleep" \
\
"@terraform" \
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.412.1"
VERSION = "9.413.1"

REPO_NAME = "awesome-bash-cli"

Expand Down
2 changes: 2 additions & 0 deletions abcli/help/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
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.seed import help_functions as help_seed
from abcli.help.sleep import help_sleep
from abcli.help.terraform import help_functions as help_terraform
from abcli.help.upload import help_upload
Expand Down Expand Up @@ -52,6 +53,7 @@
"plugins": help_plugins,
"repeat": help_repeat,
"sagemaker": help_sagemaker,
"seed": help_seed,
"sleep": help_sleep,
"terraform": help_terraform,
"upload": help_upload,
Expand Down
57 changes: 57 additions & 0 deletions abcli/help/seed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
from typing import List

from blue_options.terminal import show_usage, xtra


def help_(
tokens: List[str],
mono: bool,
) -> str:
options = "clipboard|filename=<filename>|key|screen,env=<env-name>,eval,plugin=<plugin-name>,~log"

return show_usage(
[
"@seed",
"<target>",
f"[{options}]",
"[cat,dryrun]",
"<command-line>",
],
"generate and output a seed 🌱.",
mono=mono,
)


def help_eject(
tokens: List[str],
mono: bool,
) -> str:
return show_usage(
[
"@seed",
"eject",
],
"eject seed 🌱.",
mono=mono,
)


def help_list(
tokens: List[str],
mono: bool,
) -> str:
return show_usage(
[
"@seed",
"list",
],
"list seed 🌱 targets.",
mono=mono,
)


help_functions = {
"": help_,
"eject": help_eject,
"list": help_list,
}

0 comments on commit a9cfed9

Please sign in to comment.