cli

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorAlreadyReported added in v0.22.0

func ErrorAlreadyReported(err error) bool

func New

func New() *cobra.Command

Types

type Daemon added in v0.23.0

type Daemon struct{}

func (*Daemon) Customize added in v0.23.0

func (d *Daemon) Customize(cmd *cobra.Command)

func (*Daemon) Run added in v0.23.0

func (d *Daemon) Run(cmd *cobra.Command, args []string) error

type Login added in v0.22.0

type Login struct {
	PromptConfig
	TokenName        string   `usage:"Name of the token for identification" default:"CLI token"`
	TokenDescription string   `usage:"Optional description of the token"`
	NoExpiration     bool     `usage:"Set the token to never expire"`
	ForceRefresh     bool     `usage:"Force refresh the token even if a valid one is cached"`
	Scopes           []string `` /* 140-byte string literal not displayed */
	PrintToken       bool     `usage:"Print the token to stdout after logging in"`
	URL              string   `usage:"Obot app URL to authenticate against"`
	// contains filtered or unexported fields
}

func (*Login) Customize added in v0.22.0

func (l *Login) Customize(cmd *cobra.Command)

func (*Login) Run added in v0.22.0

func (l *Login) Run(cmd *cobra.Command, _ []string) error

type Logout added in v0.22.0

type Logout struct {
	URL string `usage:"Obot app URL whose stored credentials should be removed"`
	// contains filtered or unexported fields
}

func (*Logout) Customize added in v0.22.0

func (l *Logout) Customize(cmd *cobra.Command)

func (*Logout) Run added in v0.22.0

func (l *Logout) Run(cmd *cobra.Command, _ []string) error

type MCP added in v0.23.0

type MCP struct {
	// contains filtered or unexported fields
}

func (*MCP) Customize added in v0.23.0

func (m *MCP) Customize(c *cobra.Command)

func (*MCP) Run added in v0.23.0

func (m *MCP) Run(cmd *cobra.Command, _ []string) error

type MCPSearch added in v0.23.0

type MCPSearch struct {
	PromptConfig

	Limit int  `usage:"Maximum number of MCP servers to return; 0 means no limit" default:"50"`
	JSON  bool `usage:"Print results as JSON"`
	// contains filtered or unexported fields
}

func (*MCPSearch) Customize added in v0.23.0

func (m *MCPSearch) Customize(cmd *cobra.Command)

func (*MCPSearch) Run added in v0.23.0

func (m *MCPSearch) Run(cmd *cobra.Command, args []string) error

type Obot

type Obot struct {
	Debug  bool `usage:"Enable debug logging"`
	Client *apiclient.Client
}

func (*Obot) PersistentPre

func (a *Obot) PersistentPre(*cobra.Command, []string) error

func (*Obot) Run

func (a *Obot) Run(cmd *cobra.Command, _ []string) error

type PromptConfig added in v0.23.0

type PromptConfig struct {
	NonInteractive bool `usage:"Never read from stdin; fail if required input is missing" env:"OBOT_NON_INTERACTIVE" local:"true"`
}

PromptConfig contains shared local options for commands that may require interactive input from users. e.g. Any command that performs just-in-time authentication for unauthenticated users.

func (PromptConfig) Pre added in v0.23.0

func (p PromptConfig) Pre(cmd *cobra.Command, _ []string) error

type Scan added in v0.22.0

type Scan struct {
	PromptConfig
	DeviceID string `` /* 206-byte string literal not displayed */
	Submit   bool   `usage:"Submit the scan to the configured Obot server" env:"OBOT_SCAN_SUBMIT"`
	JSON     bool   `usage:"Print the scan result as JSON"`
	Timeout  int    `usage:"Number of seconds to wait for the scan to complete" default:"60" env:"OBOT_SCAN_TIMEOUT"`
	MaxDepth int    `` /* 194-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Scan) Customize added in v0.22.0

func (s *Scan) Customize(cmd *cobra.Command)

func (*Scan) Run added in v0.22.0

func (s *Scan) Run(cmd *cobra.Command, _ []string) error

type Server

type Server struct {
	services.Config
}

func (*Server) Customize added in v0.22.0

func (s *Server) Customize(cmd *cobra.Command)

func (*Server) Run

func (s *Server) Run(cmd *cobra.Command, _ []string) error

type Setup added in v0.22.0

type Setup struct {
	PromptConfig
	URL     string `usage:"Obot app URL to configure" local:"true"`
	Clients string `usage:"Comma-separated target clients: none, claude-code, or agents" local:"true"`
	Yes     bool   `usage:"Accept confirmations and use defaults" local:"true"`
	Output  string `usage:"Output format: text or json" default:"text" local:"true"`
	// contains filtered or unexported fields
}

func (*Setup) Customize added in v0.22.0

func (s *Setup) Customize(c *cobra.Command)

func (*Setup) Run added in v0.22.0

func (s *Setup) Run(cmd *cobra.Command, _ []string) error

type SetupDetectClients added in v0.22.0

type SetupDetectClients struct {
	JSON bool `usage:"Print detected clients as JSON"`
}

func (*SetupDetectClients) Customize added in v0.22.0

func (s *SetupDetectClients) Customize(cmd *cobra.Command)

func (*SetupDetectClients) Run added in v0.22.0

func (s *SetupDetectClients) Run(cmd *cobra.Command, _ []string) error

type SetupStatus added in v0.22.0

type SetupStatus struct {
	JSON bool `usage:"Print status as JSON"`
	// contains filtered or unexported fields
}

func (*SetupStatus) Customize added in v0.22.0

func (s *SetupStatus) Customize(cmd *cobra.Command)

func (*SetupStatus) Run added in v0.22.0

func (s *SetupStatus) Run(cmd *cobra.Command, _ []string) error

type Skills added in v0.22.0

type Skills struct {
	// contains filtered or unexported fields
}

func (*Skills) Customize added in v0.22.0

func (s *Skills) Customize(c *cobra.Command)

func (*Skills) Run added in v0.22.0

func (s *Skills) Run(cmd *cobra.Command, _ []string) error

type SkillsInstall added in v0.22.0

type SkillsInstall struct {
	PromptConfig

	Destination string `usage:"Target skills directory, such as ~/.claude/skills or ~/.agents/skills"`
	JSON        bool   `usage:"Print results as JSON"`
	// contains filtered or unexported fields
}

func (*SkillsInstall) Customize added in v0.22.0

func (s *SkillsInstall) Customize(cmd *cobra.Command)

func (*SkillsInstall) Run added in v0.22.0

func (s *SkillsInstall) Run(cmd *cobra.Command, args []string) error

type SkillsSearch added in v0.22.0

type SkillsSearch struct {
	PromptConfig

	Limit int  `usage:"Maximum number of skills to return" default:"50"`
	JSON  bool `usage:"Print results as JSON"`
	// contains filtered or unexported fields
}

func (*SkillsSearch) Customize added in v0.22.0

func (s *SkillsSearch) Customize(cmd *cobra.Command)

func (*SkillsSearch) Run added in v0.22.0

func (s *SkillsSearch) Run(cmd *cobra.Command, args []string) error

type Version

type Version struct{}

func (*Version) Run

func (l *Version) Run(*cobra.Command, []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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