Skip to content

Commit 4e274c8

Browse files
authored
Updated docs for auth commands (#2156)
1 parent 61f2cb1 commit 4e274c8

File tree

6 files changed

+497
-497
lines changed

6 files changed

+497
-497
lines changed

src/snowflake/cli/_plugins/auth/keypair/commands.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def setup(
8787
**options,
8888
):
8989
"""
90-
Generates the key pair, sets the public key for the user in Snowflake and creates or updates the connection.
90+
Generates the key pair, sets the public key for the user in Snowflake, and creates or updates the connection.
9191
"""
9292
AuthManager().setup(
9393
connection_name=connection_name,
@@ -106,7 +106,7 @@ def rotate(
106106
**options,
107107
):
108108
"""
109-
Rotates the key for the connection. Generates the key pair, sets the public key for the user in Snowflake and creates or updates the connection.
109+
Rotates the key for the connection. Generates the key pair, sets the public key for the user in Snowflake, and creates or updates the connection.
110110
"""
111111
AuthManager().rotate(
112112
key_length=key_length,
@@ -129,7 +129,7 @@ def remove(
129129
public_key_property: PublicKeyProperty = typer.Option(
130130
...,
131131
"--key-id",
132-
help=f"local path to template directory or URL to git repository with templates.",
132+
help=f"Local path to the template directory or a URL to Git repository with templates.",
133133
show_default=False,
134134
),
135135
**options,

src/snowflake/cli/api/commands/flags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _password_callback(value: str):
215215
TokenFilePathOption = typer.Option(
216216
None,
217217
"--token-file-path",
218-
help="Path to file with an OAuth token that should be used when connecting to Snowflake",
218+
help="Path to file with an OAuth token to use when connecting to Snowflake.",
219219
callback=_connection_callback("token_file_path"),
220220
show_default=False,
221221
rich_help_panel=_CONNECTION_SECTION,
@@ -325,7 +325,7 @@ def _diag_log_allowlist_path_callback(path: str):
325325
DiagAllowlistPathOption: Path = typer.Option(
326326
None,
327327
"--diag-allowlist-path",
328-
help="Path to a JSON file containing allowlist parameters.",
328+
help="Path to a JSON file that contains allowlist parameters.",
329329
callback=_diag_log_allowlist_path_callback,
330330
show_default=False,
331331
rich_help_panel=_CONNECTION_SECTION,

tests/__snapshots__/test_docs_generation_output.ambr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
Snowflake private key file path. Overrides the value specified for the connection.
7676

7777
:samp:`--token-file-path {TEXT}`
78-
Path to file with an OAuth token that should be used when connecting to Snowflake.
78+
Path to file with an OAuth token to use when connecting to Snowflake.
7979

8080
:samp:`--database, --dbname {TEXT}`
8181
Database to use. Overrides the value specified for the connection.
@@ -102,7 +102,7 @@
102102
Path for the generated report. Defaults to system temporary directory. Default: <system_temporary_directory>.
103103

104104
:samp:`--diag-allowlist-path {TEXT}`
105-
Path to a JSON file containing allowlist parameters.
105+
Path to a JSON file that contains allowlist parameters.
106106

107107
:samp:`--format [TABLE|JSON]`
108108
Specifies the output format. Default: TABLE.

0 commit comments

Comments
 (0)