Skip to content

feat(cli): drop the 'web' browser-UI command from the default binary - #4038

Merged
0pcom merged 1 commit into
skycoin:developfrom
0pcom:feat/drop-cli-web-command
Aug 20, 2026
Merged

feat(cli): drop the 'web' browser-UI command from the default binary#4038
0pcom merged 1 commit into
skycoin:developfrom
0pcom:feat/drop-cli-web-command

Conversation

@0pcom

@0pcom 0pcom commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

The default skywire binary (repo-root main → cmd/skywire-cli/commands) registered the web command, which served the CLI as a browser UI and embedded cmd/skywire/commands/web/static/b.wasm (~111 KB) unconditionally into both the root and ./cmd/skywire builds.

It's redundant — the CLI/cobra help tree is reachable via the websh terminal in the hypervisor UI and the wasm-visor UI. Removed from the command tree and the self-contained package deleted (server + its own wasm source + static/ incl. b.wasm). Verified its wasm builder is not shared with the apt-repo cmd/wasm install-page generator. Also drops the Makefile build-wasm lane entry + the command's docs.

Removes one of the 4 wasm blobs embedded in the default skywire binary.

The default skywire binary (repo-root main -> cmd/skywire-cli/commands)
registered the `web` command, which served the CLI as a browser UI and
embedded cmd/skywire/commands/web/static/b.wasm (~111 KB) unconditionally
into both the repo-root binary and ./cmd/skywire.

The command is redundant: the CLI/cobra help tree is already reachable via
the websh terminal in the hypervisor UI and the wasm-visor UI. Remove it
from the command tree and delete the self-contained package (server, its
own wasm/main.go source, and static/ assets incl. b.wasm).

- cmd/skywire-cli/commands/root.go: drop the import, the GroupID line, and
  the AddCommand entry.
- cmd/skywire/commands/web/: removed entirely (self-contained; no other Go
  package imported it, and its wasm builder is not shared with any other
  tooling).
- Makefile build-wasm lane: drop ./cmd/skywire/commands/web/wasm from the
  compile-check list.
- docs: drop the command's README and its index entry.
@0pcom
0pcom merged commit c2c3adf into skycoin:develop Aug 20, 2026
11 of 16 checks passed
@0pcom
0pcom deleted the feat/drop-cli-web-command branch August 24, 2026 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant