@@ -52,8 +52,7 @@ def create_factory(model):
5252 @from_pydantic ("obj" , model , exclude = exclude )
5353 @click .pass_context
5454 def create_command (ctx , indent , headers , obj : model , * args , ** kwargs ):
55- """Perform a `SCIM POST <https://www.rfc-editor.org/rfc/rfc7644#section-3.3>`_ request
56- on resources endpoint.
55+ r"""Perform a `SCIM POST <https://www.rfc-editor.org/rfc/rfc7644#section-3.3>`_ request on resources endpoint.
5756
5857 Input data can be passed through parameters like :code:`--external-id`.
5958
@@ -74,8 +73,8 @@ def create_command(ctx, indent, headers, obj: model, *args, **kwargs):
7473 .. code-block:: bash
7574
7675 echo '{"userName": "[email protected] ", "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"]}' | scim https://scim.example create user 77- """
7876
77+ """
7978 if obj == model ():
8079 obj = None
8180
@@ -106,8 +105,7 @@ def create_command(ctx, indent, headers, obj: model, *args, **kwargs):
106105 "-h" , "--headers" , multiple = True , help = "Header to pass in the HTTP requests."
107106)
108107def create_cli (ctx , indent , headers ):
109- """Perform a `SCIM POST <https://www.rfc-editor.org/rfc/rfc7644#section-3.3>`_ request
110- on resources endpoint.
108+ """Perform a `SCIM POST <https://www.rfc-editor.org/rfc/rfc7644#section-3.3>`_ request on resources endpoint.
111109
112110 There are subcommands for all the available models, with dynamic attributes.
113111 See the attributes for :code:`user` with:
@@ -121,8 +119,8 @@ def create_cli(ctx, indent, headers):
121119 .. code-block:: bash
122120
123121 echo '{"userName": "[email protected] ", "schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"]}' | scim https://scim.example create 124- """
125122
123+ """
126124 if ctx .invoked_subcommand is not None :
127125 return
128126
0 commit comments