Documentation
¶
Overview ¶
internal/cli/agent_service.go
internal/cli/serve_service.go
internal/cli/service_config.go
internal/cli/service_instance.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Version = "dev" GitCommit = "unknown" BuildDate = "unknown" )
Functions ¶
func ExitCode ¶ added in v0.1.55
ExitCode extracts a guest command exit status from err, including through ordinary wrapping. The second result is false for client, transport, and other non-guest failures.
func IsReported ¶ added in v0.1.30
IsReported reports whether err (or any error it wraps) was produced by MarkReported.
func MarkReported ¶ added in v0.1.30
MarkReported wraps err so IsReported returns true for it. Call this from a command's RunE after it has already written a user-facing explanation of err to stderr, so the caller doesn't print it again.
func NewExitCodeError ¶ added in v0.1.55
NewExitCodeError constructs the typed error returned for a non-zero guest command result.
func NewRootCommand ¶
Types ¶
type ExitCodeError ¶ added in v0.1.55
type ExitCodeError struct {
Code int
}
ExitCodeError reports a command that ran successfully through the Boxy transport but returned a non-zero status from the guest. Keeping this type distinct from transport and API errors lets cmd/boxy preserve the guest status at the process boundary.
func (*ExitCodeError) Error ¶ added in v0.1.55
func (e *ExitCodeError) Error() string
Source Files
¶
- admin.go
- admin_bootstrap_password.go
- agent.go
- agent_serve.go
- agent_service.go
- agent_token.go
- api_client.go
- catalog.go
- client_config.go
- config.go
- config_paths.go
- debug.go
- debug_devtools_stub.go
- debug_pool.go
- debug_resource.go
- diagnostics.go
- errors.go
- guest_credentials.go
- init.go
- login.go
- login_oidc.go
- openbrowser.go
- output.go
- package.go
- pool.go
- privilege_unix.go
- root.go
- sandbox.go
- sandbox_create.go
- sandbox_delete.go
- sandbox_exec.go
- sandbox_extend.go
- sandbox_get.go
- sandbox_list.go
- secrets.go
- secrets_commands.go
- serve.go
- serve_service.go
- serve_ui.go
- service_config.go
- service_instance.go
- skills.go
- status.go
- ui.go
- update.go
- version.go