cli

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package cli provides the command-line interface for remote-ui. It exports Run() and RunWithHooks() to allow extension by wrapper projects.

Package cli provides the command-line interface for remote-ui. This file re-exports config types from internal/config for public API.

Package cli provides the command-line interface for remote-ui. This file re-exports internal packages for MCP integration.

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfig = config.DefaultConfig
	Load          = config.Load
)

Re-export config functions for public API

View Source
var (
	IsBundled                = bundle.IsBundled
	BundleListFiles          = bundle.ListFilesInDir
	BundleListFilesRecursive = bundle.ListFilesInDirRecursive
	BundleListFilesWithInfo  = bundle.ListFilesWithInfo
	BundleReadFile           = bundle.ReadFile
	TypeName                 = lua.TypeName
)

Re-export bundle functions for MCP integration

View Source
var (
	LuaToGo = lua.LuaToGo
)

Re-export Lua utilities

View Source
var (
	NewServer = server.New
)

Re-export server constructor

Functions

func Run

func Run(args []string) int

Run executes the CLI with the given arguments. Returns exit code (0 = success, non-zero = error).

func RunWithHooks

func RunWithHooks(args []string, hooks *Hooks) int

RunWithHooks executes CLI with extension hooks.

Types

type BundleFileInfo added in v0.14.4

type BundleFileInfo = bundle.FileInfo

Re-export bundle types

type Config

type Config = config.Config

Re-export config types for public API

type DebugVariable added in v0.9.0

type DebugVariable = server.DebugVariable

Debug types

type Duration

type Duration = config.Duration

Re-export config types for public API

type Hooks

type Hooks struct {
	// BeforeDispatch is called before command dispatch.
	// Return (handled=true, exitCode) to skip normal dispatch.
	BeforeDispatch func(command string, args []string) (handled bool, exitCode int)

	// CustomHelp returns additional help text to append.
	CustomHelp func() string

	// CustomVersion returns version info to append (optional).
	CustomVersion func() string
}

Hooks allows extending the CLI with additional commands.

type LoggingConfig

type LoggingConfig = config.LoggingConfig

Re-export config types for public API

type LuaConfig

type LuaConfig = config.LuaConfig

Re-export config types for public API

type LuaRuntime added in v0.9.0

type LuaRuntime = lua.LuaSession

Re-export server types for MCP integration

type Server added in v0.9.0

type Server = server.Server

Re-export server types for MCP integration

type ServerConfig

type ServerConfig = config.ServerConfig

Re-export config types for public API

type SessionConfig

type SessionConfig = config.SessionConfig

Re-export config types for public API

type Tracker added in v0.9.0

type Tracker = changetracker.Tracker

Re-export server types for MCP integration

type Variable added in v0.9.0

type Variable = changetracker.Variable

Change-tracker types for variable inspection

type ViewdefManager added in v0.9.0

type ViewdefManager = viewdef.ViewdefManager

Re-export server types for MCP integration

Jump to

Keyboard shortcuts

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