cmd

package
v0.0.0-...-5db9845 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

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

func NewAdbExposeCommand() *cobra.Command

NewAdbExposeCommand creates the adb-expose command

func NewAdbExposeListCommand

func NewAdbExposeListCommand() *cobra.Command

func NewAdbExposeStartCommand

func NewAdbExposeStartCommand() *cobra.Command

func NewAdbExposeStopCommand

func NewAdbExposeStopCommand() *cobra.Command

func NewBoxCommand

func NewBoxCommand() *cobra.Command

NewBoxCommand creates and returns the box command

func NewBoxCpCommand

func NewBoxCpCommand() *cobra.Command

func NewBoxCreateAndroidCommand

func NewBoxCreateAndroidCommand() *cobra.Command

func NewBoxCreateCommand

func NewBoxCreateCommand() *cobra.Command

NewBoxCreateCommand creates the parent command for box creation

func NewBoxCreateLinuxCommand

func NewBoxCreateLinuxCommand() *cobra.Command

func NewBoxExecCommand

func NewBoxExecCommand() *cobra.Command

NewBoxExecCommand creates a new box exec command

func NewBoxInspectCommand

func NewBoxInspectCommand() *cobra.Command

func NewBoxListCommand

func NewBoxListCommand() *cobra.Command

func NewBoxTerminateCommand

func NewBoxTerminateCommand() *cobra.Command

func NewDeviceConnectCommand

func NewDeviceConnectCommand() *cobra.Command

func NewDeviceConnectKillServerCommand

func NewDeviceConnectKillServerCommand() *cobra.Command

func NewDeviceConnectListCommand

func NewDeviceConnectListCommand() *cobra.Command

func NewDeviceConnectUnregisterCommand

func NewDeviceConnectUnregisterCommand() *cobra.Command

func NewMcpCommand

func NewMcpCommand() *cobra.Command

func NewMcpExportCommand

func NewMcpExportCommand() *cobra.Command

func NewVersionCommand

func NewVersionCommand() *cobra.Command

NewVersionCommand creates a new version command

func ResolveBoxIDPrefix

func ResolveBoxIDPrefix(prefix string) (fullID string, matchedIDs []string, err error)

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 AndroidBoxCreateOptions struct {
	OutputFormat string
	DeviceType   string
	Env          []string
	Labels       []string
	ExpiresIn    string
}

type BoxCpOptions

type BoxCpOptions struct {
	Source      string
	Destination string
}

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 BoxListOptions struct {
	OutputFormat string
	Filters      []string
}

type BoxPath

type BoxPath struct {
	BoxID string
	Path  string
}

BoxPath represents the structure of a box path

type BoxResponse

type BoxResponse struct {
	Boxes []struct {
		ID     string `json:"id"`
		Image  string `json:"image"`
		Status string `json:"status"`
	} `json:"boxes"`
}

type BoxTerminateOptions

type BoxTerminateOptions struct {
	OutputFormat string
	TerminateAll bool
	Force        bool
}

type DeviceConnectKillServerOptions

type DeviceConnectKillServerOptions struct {
	Force bool
	All   bool
}

type DeviceConnectListOptions

type DeviceConnectListOptions struct {
	OutputFormat string
}

type DeviceConnectOptions

type DeviceConnectOptions struct {
	DeviceID   string
	Background bool
}

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 LinuxBoxCreateOptions struct {
	OutputFormat string
	Env          []string
	Labels       []string
}

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

type VersionOptions struct {
	OutputFormat string
	ShortFormat  bool
}

VersionOptions holds command options

Jump to

Keyboard shortcuts

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