Versions in this module Expand all Collapse all v0 v0.7.0 May 2, 2026 Changes in this version type App + func (a *App) WithBackend(fn func(backend.Backend) error) error v0.6.0 Apr 30, 2026 v0.4.2 Apr 24, 2026 Changes in this version + const ExitBadUsage + const ExitConflict + const ExitGeneric + const ExitNotFound + const ExitOK + const ExitUnauthorized + func Execute(ctx context.Context, app *App, args []string) int + func ExitCodeFor(err error) int + func NewRootCmd(app *App) *cobra.Command + func NewUsageError(format string, args ...any) error + func PrintError(w io.Writer, err error, jsonOut bool) + func StdinIsTTY() bool + type App struct + IO IO + RemoteHTTPClient *http.Client + func (a *App) Backend() (backend.Backend, error) + func (a *App) EmitJSON(v any) + func (a *App) EmitTable(rows [][]string) + func (a *App) EmitText(format string, args ...any) + func (a *App) JSON() bool + func (a *App) LocalBackend() (*backend.LocalBackend, error) + func (a *App) ReadContent(content, file string) (string, error) + func (a *App) ResolveHome() (string, error) + type IO struct + Err io.Writer + In io.Reader + Out io.Writer + func DefaultIO() IO + type ProjectScope struct + Root string + Slug models.Slug + Source string + Warning string + type UsageError struct + Msg string + func (e *UsageError) Error() string