Documentation
¶
Index ¶
- func Execute() error
- func ExecuteAdbExpose(cmd *cobra.Command, opts *AdbExposeOptions, args []string) error
- func ExecuteAdbExposeInteractive(cmd *cobra.Command, opts *AdbExposeOptions) error
- func ExecuteAdbExposeList(cmd *cobra.Command, opts *AdbExposeListOptions) error
- func ExecuteAdbExposeStop(cmd *cobra.Command, opts *AdbExposeStopOptions, args []string) error
- func ExecuteDeviceConnect(cmd *cobra.Command, opts *DeviceConnectOptions, args []string) error
- func ExecuteDeviceConnectKillServer(cmd *cobra.Command, opts *DeviceConnectKillServerOptions) error
- func ExecuteDeviceConnectList(cmd *cobra.Command, opts *DeviceConnectListOptions) error
- func ExecuteDeviceConnectUnregister(cmd *cobra.Command, opts *DeviceConnectUnregisterOptions, args []string) error
- func NewAdbExposeCommand() *cobra.Command
- func NewAdbExposeListCommand() *cobra.Command
- func NewAdbExposeStartCommand() *cobra.Command
- func NewAdbExposeStopCommand() *cobra.Command
- func NewBoxCommand() *cobra.Command
- func NewBoxCpCommand() *cobra.Command
- func NewBoxCreateAndroidCommand() *cobra.Command
- func NewBoxCreateCommand() *cobra.Command
- func NewBoxCreateLinuxCommand() *cobra.Command
- func NewBoxExecCommand() *cobra.Command
- func NewBoxInspectCommand() *cobra.Command
- func NewBoxListCommand() *cobra.Command
- func NewBoxTerminateCommand() *cobra.Command
- func NewDeviceConnectCommand() *cobra.Command
- func NewDeviceConnectKillServerCommand() *cobra.Command
- func NewDeviceConnectListCommand() *cobra.Command
- func NewDeviceConnectUnregisterCommand() *cobra.Command
- func NewMcpCommand() *cobra.Command
- func NewMcpExportCommand() *cobra.Command
- func NewVersionCommand() *cobra.Command
- func ResolveBoxIDPrefix(prefix string) (fullID string, matchedIDs []string, err error)
- type AdbExposeListOptions
- type AdbExposeOptions
- type AdbExposeStopOptions
- type AndroidBoxCreateOptions
- type BoxCpOptions
- type BoxExecOptions
- type BoxInspectOptions
- type BoxListOptions
- type BoxPath
- type BoxResponse
- type BoxTerminateOptions
- type DeviceConnectKillServerOptions
- type DeviceConnectListOptions
- type DeviceConnectOptions
- type DeviceConnectUnregisterOptions
- type GenericMcpConfig
- type LinuxBoxCreateOptions
- type McpConfig
- type McpServerEntry
- type TableColumn
- type TokenResponse
- type VersionOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteAdbExpose ¶
func ExecuteAdbExpose(cmd *cobra.Command, opts *AdbExposeOptions, args []string) error
ExecuteAdbExpose runs the adb-expose logic
func ExecuteAdbExposeInteractive ¶
func ExecuteAdbExposeInteractive(cmd *cobra.Command, opts *AdbExposeOptions) error
ExecuteAdbExposeInteractive runs the interactive mode for adb-expose
func ExecuteAdbExposeList ¶
func ExecuteAdbExposeList(cmd *cobra.Command, opts *AdbExposeListOptions) error
ExecuteAdbExposeList lists all running adb-expose processes
func ExecuteAdbExposeStop ¶
func ExecuteAdbExposeStop(cmd *cobra.Command, opts *AdbExposeStopOptions, args []string) error
ExecuteAdbExposeStop stops adb-expose processes for a specific box
func ExecuteDeviceConnect ¶
func ExecuteDeviceConnect(cmd *cobra.Command, opts *DeviceConnectOptions, args []string) error
func ExecuteDeviceConnectKillServer ¶
func ExecuteDeviceConnectKillServer(cmd *cobra.Command, opts *DeviceConnectKillServerOptions) error
func ExecuteDeviceConnectList ¶
func ExecuteDeviceConnectList(cmd *cobra.Command, opts *DeviceConnectListOptions) error
func ExecuteDeviceConnectUnregister ¶
func ExecuteDeviceConnectUnregister(cmd *cobra.Command, opts *DeviceConnectUnregisterOptions, args []string) error
func NewAdbExposeCommand ¶
NewAdbExposeCommand creates the adb-expose command
func NewAdbExposeListCommand ¶
func NewAdbExposeStopCommand ¶
func NewBoxCommand ¶
NewBoxCommand creates and returns the box command
func NewBoxCpCommand ¶
func NewBoxCreateCommand ¶
NewBoxCreateCommand creates the parent command for box creation
func NewBoxExecCommand ¶
NewBoxExecCommand creates a new box exec command
func NewBoxInspectCommand ¶
func NewBoxListCommand ¶
func NewBoxTerminateCommand ¶
func NewDeviceConnectCommand ¶
func NewMcpCommand ¶
func NewMcpExportCommand ¶
func NewVersionCommand ¶
NewVersionCommand creates a new version command
func ResolveBoxIDPrefix ¶
ResolveBoxIDPrefix takes a prefix string and returns the unique full Box ID if found, or an error if not found or if multiple matches exist. It also returns the list of matched IDs in case of multiple matches.
Types ¶
type AdbExposeListOptions ¶
type AdbExposeListOptions struct {
OutputFormat string
}
type AdbExposeOptions ¶
type AdbExposeOptions struct { BoxID string LocalPort int // Optional local port to bind to Foreground bool }
AdbExposeOptions holds options for the adb-expose command
type AdbExposeStopOptions ¶
type AdbExposeStopOptions struct {
BoxID string
}
type AndroidBoxCreateOptions ¶
type BoxCpOptions ¶
BoxCpOptions holds command options and parameters
type BoxExecOptions ¶
type BoxExecOptions struct { Interactive bool Tty bool BoxID string Command []string WorkingDir string }
BoxExecOptions holds command options
type BoxInspectOptions ¶
type BoxInspectOptions struct {
OutputFormat string
}
type BoxListOptions ¶
type BoxResponse ¶
type BoxTerminateOptions ¶
type DeviceConnectListOptions ¶
type DeviceConnectListOptions struct {
OutputFormat string
}
type DeviceConnectOptions ¶
type DeviceConnectUnregisterOptions ¶
type DeviceConnectUnregisterOptions struct {
All bool
}
type GenericMcpConfig ¶
type GenericMcpConfig struct {
McpServers map[string]json.RawMessage `json:"mcpServers"`
}
Define a generic structure to read potentially mixed-format existing config
type LinuxBoxCreateOptions ¶
type McpConfig ¶
type McpConfig struct {
McpServers map[string]McpServerEntry `json:"mcpServers"`
}
Keep McpConfig using the specific new entry type for generation
type McpServerEntry ¶
type McpServerEntry struct { Command string `json:"command"` Args []string `json:"args"` Env map[string]string `json:"env,omitempty"` }
Define the structure for the new MCP server entry using URL
type TableColumn ¶
type TableColumn struct { Header string Key string // key to extract from data map Width int // calculated width }
TableColumn represents a column in a table
type TokenResponse ¶
type TokenResponse struct {
Token string `json:"token"`
}
type VersionOptions ¶
VersionOptions holds command options
Source Files
¶
- adb_expose.go
- adb_expose_list.go
- adb_expose_start.go
- adb_expose_stop.go
- box.go
- box_cp.go
- box_create.go
- box_create_ad.go
- box_create_ln.go
- box_exec.go
- box_inspect.go
- box_list.go
- box_terminate.go
- completion_helpers.go
- device_connect.go
- device_connect_kill_server.go
- device_connect_list.go
- device_connect_unregister.go
- help.go
- login.go
- mcp.go
- mcp_export.go
- profile.go
- render.go
- root.go
- version.go