Versions in this module Expand all Collapse all v0 v0.3.0 Sep 28, 2026 Changes in this version + const CookieFilePerm + const DefaultSlugField + const PathSourceBreadcrumbs + const PathSourceHome + const PathSourceSlug + const PathSourceTemplate + const WarnBackupRedacted + const WarnBackupSkipped + const WarnBackupsOff + const WarnBlockTypeOmitted + const WarnBodyIDMismatch + const WarnBodyPublishes + const WarnBodyStatusIgnored + const WarnConfigPathAnchored + const WarnEmptyRows + const WarnFieldNotOnDocument + const WarnFieldsNotRestored + const WarnHookRewroteUnsent + const WarnMatchValueNormalized + const WarnNeverPublished + const WarnOrphanCheckIncomplete + const WarnOrphanRisk + const WarnOrphanRows + const WarnPendingDraftSuperseded + const WarnPreviewNoAuth + const WarnPublishedNotRestored + const WarnPublishesPendingDraft + const WarnRecreateIgnored + const WarnRecreatedInTrash + const WarnRecreatedNewID + const WarnRedactedNotSent + const WarnRedactedRemoved + const WarnRefTargetUnchecked + const WarnRelationIDNotNumeric + const WarnResetNestedIncomplete + const WarnResetNestedNotNeeded + const WarnResetNestedUnresolved + const WarnRestoreTwoSteps + const WarnRestoredAsDraft + const WarnSavedAsDraft + const WarnStaleIndex + const WarnURLNotLive + const WarnURLPathGuessed + func CompleteCensusBlockTypes(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteCensusFieldPaths(rt *Runtime, entityArg bool, ...) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteEntitiesVariadic(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteEntityFlag(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func PathAdvice(exe string, pathEntries []string, home string) string type App + Executable string + type BackupResult struct + Paths []string + Redacted []string + Skipped []any + type BackupTarget struct + Collection *collTarget + Global *globalTarget + IDs []any + Params query.Params type Deps + func (d *Deps) BackupBeforeWrite(ctx context.Context, command string, bt BackupTarget) (*BackupResult, error) + func (d *Deps) BackupPreview(command string, bt BackupTarget) *backupPreview + func (d *Deps) BackupsEnabled() bool + func (d *Deps) ResolveDocBySlug(ctx context.Context, t *collTarget, slug string, o SlugLookup) (*DocRef, error) + type DocRef struct + ID any + IDString string + Slug string type Runtime + func (rt *Runtime) PreviewSecret() (*secret.PreviewSecret, error) + type SlugLookup struct + Draft bool + Field string + Locale string + Trash bool v0.2.0 Sep 23, 2026 Changes in this version + const GroupEdit + const WarnBlocksFieldInferred + const WarnEnvelopeUnwrapped + const WarnFieldAbsent + const WarnPopulatedRelationship + const WarnUpstreamError + func CompleteBlockSlugs(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) v0.1.0 Sep 17, 2026 Changes in this version + const CheckFail + const CheckOK + const CheckSkipped + const CheckUnknown + const CheckWarn + const CompletionBudget + const DefaultMaxBytes + const DetailCap + const GroupAdmin + const GroupDiscovery + const GroupFiles + const GroupOther + const GroupRead + const GroupWrite + var BulkExitCodes = []int + var DestructiveExitCodes = []int + var ReadExitCodes = []int + var WriteExitCodes = ReadExitCodes + func CompleteCollections(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteEntities(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteEnum(values ...string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteFieldPaths(rt *Runtime, mode FieldMode) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteGlobals(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func CompleteProfiles(rt *Runtime) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func Handle(rt *Runtime, name string, h Handler) func(*cobra.Command, []string) error + func Main() int + func Register(f factory) + func Run(ctx context.Context, app App) (code int) + func SetHelp(cmd *cobra.Command, h *Help) + func UpdateHint(statePath, currentVersion string) string + func WhereOperatorAliases() []string + type App struct + Args []string + Dirs config.Paths + Env []string + HTTP http.RoundTripper + NoSignals bool + Now func() time.Time + Stderr io.Writer + StderrIsTTY bool + Stdin io.Reader + StdinIsTTY bool + Stdout io.Writer + StdoutIsTTY bool + WorkDir string + type ArgSpec struct + Example string + Name string + Required bool + Type string + Values []string + ValuesFrom string + type Check struct + Detail string + Hint string + Name string + Status string + Value any + type CommandSpec struct + Args []ArgSpec + Examples []Example + ExitCodes []int + Flags []FlagSpec + Mistakes []Mistake + Output OutputSpec + Path []string + SeeAlso []string + Short string + Subcommands []string + type Deps struct + Client *payload.Client + FetchURL func(ctx context.Context, rawurl string) (body io.ReadCloser, contentType string, size int64, err error) + Manifest *discovery.Manifest + RT *Runtime + type DiscoverOptions struct + AllowWriteProbes bool + Deep bool + NoLabels bool + NoProbes bool + type Example struct + Cmd string + Why string + type FieldMode string + const FieldDate + const FieldQueryable + const FieldSelectable + const FieldSortable + type FlagInfo struct + Grammar string + Max *int + Min *int + Note string + Operators []string + Repeatable bool + Values []string + type FlagSpec struct + Default any + Grammar string + Max *int + Min *int + Name string + Operators []string + Repeatable bool + Shorthand string + Type string + Usage string + Values []string + type Handler func(ctx context.Context, rt *Runtime, args []string) (*output.Envelope, error) + type Help struct + Args []ArgSpec + Collections bool + Discovered func(rt *Runtime, m *discovery.Manifest) []string + Examples []Example + ExitCodes []int + FlagInfo map[string]FlagInfo + Globals bool + Long string + Mistakes []Mistake + Notes []string + Output OutputSpec + SeeAlso []string + Sort bool + Synopsis []string + Where bool + func HelpOf(cmd *cobra.Command) *Help + type Mistake struct + Right string + Wrong string + type OutputSpec struct + Kind output.DataKind + Paginated bool + Skeleton string + type Runtime struct + App App + Cfg *config.Resolved + Command string + Env config.Env + Flags *rootFlags + Log *slog.Logger + Out *output.Writer + Paths config.Paths + Project *config.Project + ProjectFile *config.File + UserFile *config.File + func (rt *Runtime) Audit() *audit.Logger + func (rt *Runtime) Cache() *cache.Store + func (rt *Runtime) CachedManifest() (*discovery.Manifest, bool) + func (rt *Runtime) CachedShard(slug string, kind cache.EntityKind) (*discovery.Shard, bool) + func (rt *Runtime) Client(ctx context.Context) (*payload.Client, error) + func (rt *Runtime) Confirmer() *safety.Confirmer + func (rt *Runtime) Credential(ctx context.Context) (*secret.Credential, error) + func (rt *Runtime) Discovery(ctx context.Context) (*discovery.Manifest, error) + func (rt *Runtime) Elapsed() time.Duration + func (rt *Runtime) Meta() output.Meta + func (rt *Runtime) NoRaw() bool + func (rt *Runtime) Now() time.Time + func (rt *Runtime) RunDiscovery(ctx context.Context, opts DiscoverOptions) (*discovery.Manifest, error) + func (rt *Runtime) Scope() (cache.Scope, error) + func (rt *Runtime) SecretStore() *secret.Store + func (rt *Runtime) Secrets() []string + func (rt *Runtime) Session() *cache.Session + func (rt *Runtime) SetDataBytes(n int64) + func (rt *Runtime) Shard(ctx context.Context, slug string, kind cache.EntityKind) (*discovery.Shard, bool) + func (rt *Runtime) Stderr() io.Writer + func (rt *Runtime) Stdin() io.Reader + func (rt *Runtime) Warn(w ...output.Warning) + func (rt *Runtime) Warnf(code, format string, args ...any) + func (rt *Runtime) Warnings() []output.Warning