Skip to content

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

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

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

Conversation

@0pcom

@0pcom 0pcom commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

What

Removes the web command (skywire cli web / skywire web) from the default command tree and deletes its self-contained package.

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

Why

The command is redundant: the cobra/CLI help tree is already reachable interactively via the websh terminal in the hypervisor UI and the wasm-visor UI. Dropping it removes the unconditional b.wasm embed from the default binary.

Changes

  • cmd/skywire-cli/commands/root.go: remove the web import, its GroupID assignment, and the AddCommand entry.
  • cmd/skywire/commands/web/: deleted entirely. It was self-contained — no other Go package imported it (grep -rn "commands/web" --include=*.go finds only this registration), and its wasm/main.go b.wasm builder is not shared with any other tooling.
  • Makefile: drop ./cmd/skywire/commands/web/wasm from the build-wasm compile-check lane.
  • docs: remove the command's docs/skywire/web/README.md and its index entry in docs/skywire/README.md.

Verification

  • go build . (repo root) — passes.
  • go build ./cmd/skywire — passes.
  • go list -deps . | grep commands/web — empty (the package, and thus b.wasm, is no longer in the default binary).
  • go vet ./cmd/skywire-cli/commands/ — clean.

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 4a011c3 into skycoin:develop Aug 20, 2026
23 of 32 checks passed
@0pcom
0pcom deleted the rm-cli-web-command branch August 24, 2026 23:47
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