ui

package
v0.1.0-rc.77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ui wires `w17ctl ui` — a thin kong adapter over the launcher implementation in internal/ui. The UI is the local web app: a human-facing view and controller over the same project registry, presets, and local Docker stacks the `project` / `stack` CLI drives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Start StartCmd `` /* 192-byte string literal not displayed */
	Stop  StopCmd  `cmd:"" help:"Stop the background UI server."`
}

Cmd is `w17ctl ui`. `start` runs the UI in the background (idempotent — re-running just opens the browser); `stop` tears it down. A bare `w17ctl ui` defaults to `start`.

type StartCmd

type StartCmd struct {
	Port   int  `name:"port" default:"7917" help:"Loopback port to serve the UI on (default 7917)."`
	NoOpen bool `name:"no-open" help:"Do not open a browser; just ensure the server is running."`

	// Foreground is the internal flag the launcher passes to the spawned
	// child: it runs the blocking server in this process instead of
	// daemonising again. Not for direct use.
	Foreground bool `name:"foreground" hidden:"" help:"Run the server in the foreground (internal: used by the background launcher)."`
}

StartCmd starts (or re-opens) the background UI.

func (*StartCmd) Run

func (c *StartCmd) Run() error

type StopCmd

type StopCmd struct{}

StopCmd stops the background UI.

func (*StopCmd) Run

func (c *StopCmd) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL