Skip to content

Commit

Permalink
refactor - kamangir/bolt#746
Browse files Browse the repository at this point in the history
  • Loading branch information
kamangir committed Aug 24, 2024
1 parent 4c410a5 commit bf15152
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ to use on [AWS SageMaker](https://aws.amazon.com/sagemaker/) replace `<plugin-na

[![pylint](https://github.com/kamangir/openai-commands/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/openai-commands/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/openai-commands/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/openai-commands.svg)](https://pypi.org/project/openai-commands/)

built by 🪄 [`abcli-9.244.1-current`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.149.1`](https://github.com/kamangir/openai-commands).
built by 🪄 [`abcli-9.250.1-current`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.150.1`](https://github.com/kamangir/openai-commands).
18 changes: 2 additions & 16 deletions openai_commands/README.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,28 +78,14 @@
def build():
return build_README(
items=items,
template_filename=os.path.join(
file.path(__file__),
"../template.md",
),
filename=os.path.join(
file.path(__file__),
"../README.md",
),
path=os.path.join(file.path(__file__), ".."),
NAME=NAME,
VERSION=VERSION,
REPO_NAME=REPO_NAME,
) and build_README(
items=literature_review_items,
cols=2,
template_filename=os.path.join(
file.path(__file__),
"./literature_review/template.md",
),
filename=os.path.join(
file.path(__file__),
"./literature_review/README.md",
),
path=os.path.join(file.path(__file__), "literature_review"),
NAME=NAME,
VERSION=VERSION,
REPO_NAME=REPO_NAME,
Expand Down
2 changes: 1 addition & 1 deletion openai_commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

DESCRIPTION = f"{ICON} a command interface to the OpenAI API."

VERSION = "3.149.1"
VERSION = "3.150.1"

REPO_NAME = "openai-commands"

Expand Down
17 changes: 8 additions & 9 deletions openai_commands/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
from openai_commands import README
from blueness.argparse.generic import main

success, message = main(
__file__,
NAME,
VERSION,
DESCRIPTION,
ICON,
{
main(
ICON=ICON,
NAME=NAME,
DESCRIPTION=DESCRIPTION,
VERSION=VERSION,
main_filename=__file__,
tasks={
"build_README": lambda _: README.build(),
},
logger=logger,
)
if not success:
logger.error(message)
4 changes: 2 additions & 2 deletions openai_commands/literature_review/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ literature review at scale on [AWS Batch](https://aws.amazon.com/batch/) through
| | |
| --- | --- |
| [aws_batch](https://github.com/kamangir/notebooks-and-scripts/tree/main/notebooks_and_scripts/workflow/runners/aws_batch.py) | [local](https://github.com/kamangir/notebooks-and-scripts/tree/main/notebooks_and_scripts/workflow/runners/local.py) |
| [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=BJTh2LcBttyHSEbg)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=BJTh2LcBttyHSEbg) | [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=I5EIMvTuHpc9piiS)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=I5EIMvTuHpc9piiS) |
| [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=b82sop7SCNHsivWU)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-aws_batch-study-type-screening-result/workflow.gif?raw=true&random=b82sop7SCNHsivWU) | [![image](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=dNT1LSTbeWmnclvE)](https://kamangir-public.s3.ca-central-1.amazonaws.com/AMR-v7-test-litrev-multiple-local-study-type-screening-result/workflow.gif?raw=true&random=dNT1LSTbeWmnclvE) |

---

Expand All @@ -59,4 +59,4 @@ to use on [AWS SageMaker](https://aws.amazon.com/sagemaker/) replace `<plugin-na

[![pylint](https://github.com/kamangir/openai-commands/actions/workflows/pylint.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/pylint.yml) [![pytest](https://github.com/kamangir/openai-commands/actions/workflows/pytest.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/pytest.yml) [![bashtest](https://github.com/kamangir/openai-commands/actions/workflows/bashtest.yml/badge.svg)](https://github.com/kamangir/openai-commands/actions/workflows/bashtest.yml) [![PyPI version](https://img.shields.io/pypi/v/openai-commands.svg)](https://pypi.org/project/openai-commands/)

built by 🪄 [`abcli-9.244.1-current`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.149.1`](https://github.com/kamangir/openai-commands).
built by 🪄 [`abcli-9.250.1-current`](https://github.com/kamangir/awesome-bash-cli), based on [`openai_commands-3.150.1`](https://github.com/kamangir/openai-commands).

0 comments on commit bf15152

Please sign in to comment.