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 ¶
- Variables
- func Run(args []string) int
- func RunWithHooks(args []string, hooks *Hooks) int
- type BundleFileInfo
- type Config
- type DebugVariable
- type Duration
- type Hooks
- type LoggingConfig
- type LuaConfig
- type LuaRuntime
- type Server
- type ServerConfig
- type SessionConfig
- type Tracker
- type Variable
- type ViewdefManager
Constants ¶
This section is empty.
Variables ¶
var ( DefaultConfig = config.DefaultConfig Load = config.Load )
Re-export config functions for public API
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
var (
LuaToGo = lua.LuaToGo
)
Re-export Lua utilities
var (
NewServer = server.New
)
Re-export server constructor
Functions ¶
func Run ¶
Run executes the CLI with the given arguments. Returns exit code (0 = success, non-zero = error).
func RunWithHooks ¶
RunWithHooks executes CLI with extension hooks.
Types ¶
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 LuaRuntime ¶ added in v0.9.0
type LuaRuntime = lua.LuaSession
Re-export server types for MCP integration
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