cli

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 38 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 MCPConvertCatalog added in v0.26.2

type MCPConvertCatalog struct {
	Format string `usage:"Catalog format: yaml or json" default:"yaml"`
}

func (*MCPConvertCatalog) Customize added in v0.26.2

func (*MCPConvertCatalog) Customize(cmd *cobra.Command)

func (*MCPConvertCatalog) Run added in v0.26.2

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

type MCPGenerateVMCPCatalog added in v0.26.2

type MCPGenerateVMCPCatalog struct {
	PromptConfig

	Format    string `usage:"Output format: yaml or json" default:"yaml"`
	Mode      string `usage:"Where to write the catalog: stdout, file, or dir" default:"stdout"`
	Overwrite bool   `usage:"Replace existing files in file and dir modes"`
	// contains filtered or unexported fields
}

func (*MCPGenerateVMCPCatalog) Customize added in v0.26.2

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

func (*MCPGenerateVMCPCatalog) Run added in v0.26.2

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

type MCPLogin added in v0.27.0

type MCPLogin struct{}

func (*MCPLogin) Customize added in v0.27.0

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

func (*MCPLogin) Run added in v0.27.0

func (m *MCPLogin) Run(cmd *cobra.Command, args []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 MCPValidateCatalog added in v0.26.2

type MCPValidateCatalog struct {
	Format string `usage:"Input format: yaml or json" default:"yaml"`

	RequireEntryKey bool `usage:"Require every catalog entry to set entryKey"`
}

func (*MCPValidateCatalog) Customize added in v0.26.2

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

func (*MCPValidateCatalog) Run added in v0.26.2

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

type MCPValidateSystemCatalog added in v0.26.2

type MCPValidateSystemCatalog struct {
	Format string `usage:"Input format: yaml or json" default:"yaml"`
}

func (*MCPValidateSystemCatalog) Customize added in v0.26.2

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

func (*MCPValidateSystemCatalog) Run added in v0.26.2

func (m *MCPValidateSystemCatalog) 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 Server

type Server struct {
	services.Config
}

func (*Server) Customize added in v0.22.0

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

func (*Server) Pre added in v0.26.0

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

Pre preserves an explicitly empty proxy environment variable. The command library normally ignores empty environment values when applying defaults.

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 Tunnel added in v0.25.0

type Tunnel struct {
	Token       string `usage:"Token used to authenticate with the Obot instance"`
	ObotBaseURL string `usage:"Base URL of the Obot instance" default:"http://localhost:8080/api" env:"OBOT_BASE_URL"`
}

Tunnel connects this machine to an Obot instance so Obot can reach MCP servers that are available from this machine's network.

func (*Tunnel) Customize added in v0.25.0

func (t *Tunnel) Customize(cmd *cobra.Command)

func (*Tunnel) Run added in v0.25.0

func (t *Tunnel) Run(cmd *cobra.Command, _ []string) error

type Version

type Version struct{}

func (*Version) Run

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

Directories

Path Synopsis
mcplogin
Package mcplogin relays one UI OAuth attempt.
Package mcplogin relays one UI OAuth attempt.

Jump to

Keyboard shortcuts

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