Skip to content

Commit 8335de3

Browse files
committed
doc: improve command docstrings
1 parent dbe80cd commit 8335de3

3 files changed

Lines changed: 24 additions & 15 deletions

File tree

doc/conf.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,9 @@
5656
],
5757
}
5858

59-
# -- Options for HTMLHelp output ------------------------------------------
60-
61-
htmlhelp_basename = "scim_clidoc"
62-
63-
64-
# -- Options for LaTeX output ---------------------------------------------
65-
66-
latex_elements = {}
67-
latex_documents = [
68-
(master_doc, "scim_cli.tex", "scim_cli Documentation", "Yaal", "manual")
69-
]
70-
7159
# -- Options for manual page output ---------------------------------------
7260

73-
man_pages = [(master_doc, "scim_cli", "scim_cli Documentation", [author], 1)]
61+
man_pages = [(master_doc, "scim-cli", "scim-cli Documentation", [author], 1)]
7462

7563
# -- Options for Texinfo output -------------------------------------------
7664

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ commands =
105105
[testenv:doc]
106106
commands =
107107
poetry install --with doc --without dev
108-
poetry run sphinx-build doc build/sphinx/html
108+
poetry run sphinx-build --builder html doc build/sphinx/html
109+
poetry run sphinx-build --builder man doc build/sphinx/html
109110
110111
[testenv:coverage]
111112
commands =

scim_cli/__init__.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ def cli(ctx, url):
2727
def get(ctx):
2828
"""Perform a SCIM GET request.
2929
30-
https://www.rfc-editor.org/rfc/rfc7644#section-3.4.1
30+
Data passed in JSON format to stdin is sent as request arguments::
31+
32+
echo '{"foo": "bar"}' | scim https://scim.example get
33+
34+
Details on: https://www.rfc-editor.org/rfc/rfc7644#section-3.4.1
3135
"""
3236

3337
response = requests.get(
@@ -44,6 +48,10 @@ def get(ctx):
4448
def post(ctx):
4549
"""Perform a SCIM POST request.
4650
51+
Data passed in JSON format to stdin is sent as request payload::
52+
53+
echo '{"foo": "bar"}' | scim https://scim.example post
54+
4755
https://www.rfc-editor.org/rfc/rfc7644#section-3.3
4856
"""
4957

@@ -61,6 +69,10 @@ def post(ctx):
6169
def put(ctx):
6270
"""Perform a SCIM PUT request.
6371
72+
Data passed in JSON format to stdin is sent as request payload::
73+
74+
echo '{"foo": "bar"}' | scim https://scim.example put
75+
6476
https://www.rfc-editor.org/rfc/rfc7644#section-3.5.1
6577
"""
6678

@@ -78,6 +90,10 @@ def put(ctx):
7890
def patch(ctx):
7991
"""Perform a SCIM PATCH request.
8092
93+
Data passed in JSON format to stdin is sent as request payload::
94+
95+
echo '{"foo": "bar"}' | scim https://scim.example patch
96+
8197
https://www.rfc-editor.org/rfc/rfc7644#section-3.5.2
8298
"""
8399

@@ -95,6 +111,10 @@ def patch(ctx):
95111
def delete(ctx):
96112
"""Perform a SCIM DELETE request.
97113
114+
Data passed in JSON format to stdin is sent as request payload::
115+
116+
echo '{"foo": "bar"}' | scim https://scim.example delete
117+
98118
https://www.rfc-editor.org/rfc/rfc7644#section-3.6
99119
"""
100120

0 commit comments

Comments
 (0)