Skip to content

Commit ba33233

Browse files
committed
Added the --no-ssl option. Updated the changelog. Added to the .gitignore to be less annoying.
1 parent 41b701d commit ba33233

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515

1616
.venv/
1717
venv/
18+
19+
.myclirc
20+
uv.lock

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Upcoming (TBD)
33

44
Features
55
--------
6-
* Update the default SSL value to connect securely by default.
6+
* Update the default SSL value to connect securely by default. Add a --no-ssl option to disable it.
77

88
Bug Fixes
99
--------

mycli/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1343,7 +1343,9 @@ def get_last_query(self) -> str | None:
13431343
@click.option("--ssh-key-filename", help="Private key filename (identify file) for the ssh connection.")
13441344
@click.option("--ssh-config-path", help="Path to ssh configuration.", default=os.path.expanduser("~") + "/.ssh/config")
13451345
@click.option("--ssh-config-host", help="Host to connect to ssh server reading from ssh configuration.")
1346-
@click.option("--ssl", "ssl_enable", is_flag=True, default=True, help="Enable SSL for connection (automatically enabled with other flags).")
1346+
@click.option(
1347+
"--ssl/--no-ssl", "ssl_enable", is_flag=True, default=True, help="Enable SSL for connection (automatically enabled with other flags)."
1348+
)
13471349
@click.option("--ssl-ca", help="CA file in PEM format.", type=click.Path(exists=True))
13481350
@click.option("--ssl-capath", help="CA directory.")
13491351
@click.option("--ssl-cert", help="X509 cert in PEM format.", type=click.Path(exists=True))

0 commit comments

Comments
 (0)