-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from crossjam/feature-automate-cli-documentati…
…on-generation-9 Automate cli documentation generation
- Loading branch information
Showing
8 changed files
with
157 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ venv | |
.DS_Store | ||
*~ | ||
/http_cache.sqlite | ||
/subcommands/http_cache.sqlite |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
## Entries | ||
|
||
See the main [README.md](../README.md) for top level options for | ||
logging and authentication. | ||
|
||
<!-- [[[cog | ||
import cog | ||
from feedbin_tools import cli | ||
from click.testing import CliRunner | ||
runner = CliRunner() | ||
result = runner.invoke(cli.cli, ["entries", "--help"]) | ||
help = result.output.replace("Usage: cli", "Usage: feedbin-tools") | ||
cog.out( | ||
"```\n{}\n```".format(help) | ||
) | ||
]]] --> | ||
``` | ||
Usage: feedbin-tools entries [OPTIONS] | ||
Fetch entries for the authed feedbin user and emit as JSON | ||
Options: | ||
--read / --unread | ||
--starred / --no-starred | ||
--extended / --no-extended | ||
--limit INTEGER | ||
-b, --per-page INTEGER | ||
--since TEXT Return entries after this date | ||
--include-original / --no-include-original | ||
--include-enclosure / --no-include-enclosure | ||
--include-content-diff / --no-include-content-diff | ||
--help Show this message and exit. | ||
``` | ||
<!-- [[[end]]] --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Feed | ||
|
||
See the main [README.md](../README.md) for top level options for | ||
logging and authentication. | ||
|
||
<!-- [[[cog | ||
import cog | ||
from feedbin_tools import cli | ||
from click.testing import CliRunner | ||
runner = CliRunner() | ||
result = runner.invoke(cli.cli, ["feed", "--help"]) | ||
help = result.output.replace("Usage: cli", "Usage: feedbin-tools") | ||
cog.out( | ||
"```\n{}\n```".format(help) | ||
) | ||
]]] --> | ||
``` | ||
Usage: feedbin-tools feed [OPTIONS] FEED_ID | ||
Fetch entries for feedbin feed FEED_ID and emit as JSON | ||
Options: | ||
--extended / --no-extended | ||
--limit INTEGER | ||
--help Show this message and exit. | ||
``` | ||
<!-- [[[end]]] --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
## Starred | ||
|
||
See the main [README.md](../README.md) for top level options for | ||
logging and authentication. | ||
|
||
<!-- [[[cog | ||
import cog | ||
from feedbin_tools import cli | ||
from click.testing import CliRunner | ||
runner = CliRunner() | ||
result = runner.invoke(cli.cli, ["starred", "--help"]) | ||
help = result.output.replace("Usage: cli", "Usage: feedbin-tools") | ||
cog.out( | ||
"```\n{}\n```".format(help) | ||
) | ||
]]] --> | ||
``` | ||
Usage: feedbin-tools starred [OPTIONS] | ||
Fetch feedbin starred entries for the authed feedbin user and emit as JSON | ||
Options: | ||
-b, --chunk-size INTEGER | ||
--extended / --no-extended | ||
--ids / --no-ids | ||
--limit INTEGER | ||
--help Show this message and exit. | ||
``` | ||
<!-- [[[end]]] --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## Subscriptions | ||
|
||
See the main [README.md](../README.md) for top level options for | ||
logging and authentication. | ||
|
||
<!-- [[[cog | ||
import cog | ||
from feedbin_tools import cli | ||
from click.testing import CliRunner | ||
runner = CliRunner() | ||
result = runner.invoke(cli.cli, ["subscriptions", "--help"]) | ||
help = result.output.replace("Usage: cli", "Usage: feedbin-tools") | ||
cog.out( | ||
"```\n{}\n```".format(help) | ||
) | ||
]]] --> | ||
``` | ||
Usage: feedbin-tools subscriptions [OPTIONS] | ||
Fetch feedbin subscriptions for the authed feedbin user and emit as JSON | ||
Options: | ||
--since TEXT Return entries after this date | ||
--extended / --no-extended Include extended information | ||
--help Show this message and exit. | ||
``` | ||
<!-- [[[end]]] --> |