Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ You can test the unpublished version of cihai-cli before its released, see

- _Insert changes/features/fixes for next release here_

### Internal

- Move from click to {mod}`argparse` (#286)

Click was more difficult to control and work with, ironically.

### Packaging

- Drop click dependency (#286)

## cihai-cli 0.14.0 (2022-10-01)

### Packages
Expand Down
15 changes: 15 additions & 0 deletions docs/cli/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,24 @@

# Commands

## Sub-commands

```{toctree}
:caption: General

info
reverse
```

## Command: `cihai`

```{eval-rst}
.. argparse::
:module: cihai_cli.cli
:func: create_parser
:prog: cihai
:nosubcommands:

subparser_name : @replace
See :ref:`cli-info`, :ref:`cli-reverse`
```
16 changes: 13 additions & 3 deletions docs/cli/info.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
(cli-info)=

(cihai-info)=

# cihai info

## Command

```{eval-rst}
.. click:: cihai_cli.cli:command_info
:prog: cihai info
:show-nested:
.. argparse::
:module: cihai_cli.cli
:func: create_parser
:prog: cihai
:path: info
```
16 changes: 13 additions & 3 deletions docs/cli/reverse.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
(cli-reverse)=

(cihai-reverse)=

# cihai reverse

## Command

```{eval-rst}
.. click:: cihai_cli.cli:command_reverse
:prog: cihai reverse
:show-nested:
.. argparse::
:module: cihai_cli.cli
:func: create_parser
:prog: cihai
:path: reverse
```
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"sphinx.ext.intersphinx",
"sphinx.ext.linkcode",
"sphinx.ext.napoleon",
"sphinx_click.ext", # sphinx-click
"sphinxarg.ext", # sphinx-argparse
"sphinx_inline_tabs",
"sphinx_copybutton",
"sphinxext.opengraph",
Expand Down
47 changes: 24 additions & 23 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Repository = "https://github.com/cihai/cihai-cli"

[tool.poetry.dependencies]
python = "^3.7"
click = ">=7,<8.2"
cihai = "~0.18.1"
PyYAML = "*"

Expand All @@ -68,7 +67,7 @@ gp-libs = "0.0.1a16"
furo = "*"
sphinx-autobuild = "*"
sphinx-autodoc-typehints = "*"
sphinx-click = "*"
sphinx-argparse = "*"
sphinx-inline-tabs = { version = "*", python = "^3.7" }
sphinxext-opengraph = "*"
sphinx-copybutton = "*"
Expand Down Expand Up @@ -104,7 +103,7 @@ cihai = "cihai_cli.cli:cli"
docs = [
"docutils",
"sphinx",
"sphinx-click",
"sphinx-argparse",
"sphinx-autodoc-typehints",
"sphinx-autobuild",
"sphinx-copybutton",
Expand Down
Loading