-
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.
* Sphinx command reference with click_extra * Docs: add command reference
- Loading branch information
Showing
17 changed files
with
162 additions
and
57 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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Command reference | ||
|
||
## dso | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["--help"]) | ||
``` | ||
|
||
## dso compile-config | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["compile-config", "--help"]) | ||
``` | ||
|
||
## dso create | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["create", "--help"]) | ||
``` | ||
|
||
### dso create folder | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["create", "folder", "--help"]) | ||
``` | ||
|
||
### dso create stage | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["create", "stage", "--help"]) | ||
``` | ||
|
||
## dso exec | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["exec", "--help"]) | ||
``` | ||
|
||
### dso exec quarto | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["exec", "quarto" ,"--help"]) | ||
``` | ||
|
||
## dso get-config | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["get-config", "--help"]) | ||
``` | ||
|
||
## dso init | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["init", "--help"]) | ||
``` | ||
|
||
## dso lint | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["lint", "--help"]) | ||
``` | ||
|
||
## dso repro | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["repro", "--help"]) | ||
``` | ||
|
||
## dso watermark | ||
|
||
```{eval-rst} | ||
.. click:run:: | ||
from dso.cli import dso | ||
invoke(dso, args=["watermark", "--help"]) | ||
``` |
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from click.testing import CliRunner | ||
|
||
from dso.cli import cli | ||
from dso.cli import dso | ||
|
||
|
||
def test_root_command(): | ||
runner = CliRunner() | ||
result = runner.invoke(cli) | ||
result = runner.invoke(dso) | ||
assert result.exit_code == 0 |
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
Oops, something went wrong.