cli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() error

Build compiles the app for the current platform.

func Config

func Config(args []string) error

Config handles the `lightshell config` command.

func Dev

func Dev() error

Dev runs the app in development mode with hot reload.

func Doctor

func Doctor() error

Doctor runs compatibility checks on the project.

func Init

func Init(name string, templateName string) error

Init creates a new LightShell project.

func Keys

func Keys(args []string) error

Keys handles the `lightshell keys` command.

func MCP

func MCP() error

MCP starts the MCP (Model Context Protocol) server over stdio. The server speaks JSON-RPC 2.0 and exposes LightShell tools and resources for AI-assisted development.

func Release

func Release(args []string) error

Release handles the `lightshell release` command.

Types

type PlatformArtifact

type PlatformArtifact struct {
	URL    string `json:"url"`
	SHA256 string `json:"sha256"`
}

PlatformArtifact describes a platform-specific release artifact.

type ReleaseFlags

type ReleaseFlags struct {
	Platform  string // target platform (e.g., "darwin-arm64", "linux-x64")
	Notes     string // release notes text
	NotesFile string // path to release notes file
	Draft     bool   // mark as draft release
	DryRun    bool   // do everything except upload
	NoBuild   bool   // skip the build step, use existing dist/
	Server    string // release server URL (overrides config)
	Token     string // auth token (overrides config)
}

ReleaseFlags holds the parsed flags for the release command.

type ReleaseManifest

type ReleaseManifest struct {
	Version   string                      `json:"version"`
	Notes     string                      `json:"notes"`
	PubDate   string                      `json:"pub_date"`
	Draft     bool                        `json:"draft,omitempty"`
	Signature string                      `json:"signature,omitempty"`
	Platforms map[string]PlatformArtifact `json:"platforms"`
}

ReleaseManifest is the JSON manifest published for the auto-updater.

Jump to

Keyboard shortcuts

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