Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@ jobs:
tag_name: ${{ steps.gate.outputs.tag }}
name: ${{ steps.gate.outputs.tag }}
body_path: RELEASE_NOTES.md
generate_release_notes: true
files: dist/*
6 changes: 2 additions & 4 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## v1.2.3 — Patch CLI
## v1.2.4 — Patch CLI `provision` option

- Fix how CLI shows help texts for various options(Formatting)
- Add error for not passing `--name` in `register --oauth`, because API requires it.
- Bump `pyproject.toml` to 5 - Production/Stable State
- Fix `wakemypc provision --server-url ***` displayed missing parameters error when using this option
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "wakemypc"
version = "1.2.3"
version = "1.2.4"
description = "Companion CLI for https://wakemypc.com (WakeMyPC) -- flash, provision, and manage Pico W transmitters from your terminal. WakeMyPC is a website that lets you turn on you PC remotely from anywhere in the world using Wake-on-Lan."
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
5 changes: 4 additions & 1 deletion src/wakemypc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,6 @@ def upload(port, firmware_dir, github, version, no_restart, files):
@click.option(
"--server-url",
required=False,
default="https://wakemypc.com",
help="URL of your WakeMyPC server (e.g. https://wakemypc.com)",
)
@click.option("-a", "--add-new-wifi", required=False, is_flag=True, help="Add new WiFi network instead of replacing existing ones")
Expand Down Expand Up @@ -570,6 +569,7 @@ def provision(server_url, wifi_ssid, wifi_pass, port, add_new_wifi, clear_wifi,
(add_new_wifi and wifi_ssid and wifi_pass)
or clear_wifi
or (remove_wifi and wifi_ssid)
or server_url
):
click.echo("\nMissing required options.\n")
click.echo(click.get_current_context().get_help())
Expand Down Expand Up @@ -598,6 +598,9 @@ def provision(server_url, wifi_ssid, wifi_pass, port, add_new_wifi, clear_wifi,
sys.exit(1)

click.echo(f"Provisioning Pico on {port}...")

if server_url == "":
server_url = "https://wakemypc.com" # default value if user explicitly passed empty string

try:
result = provision_pico(
Expand Down
Loading