cli

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package cli contains the Cobra command implementations backing the orjanda binary: serve, migrate, new, init, console, agent, registry, install, uninstall, and test.

See TAD §16 and PRD §21 for the full command specification. Implemented in Phase 10.

Package cli implements the orjanda CLI commands backing cmd/orjanda (TAD §16 / PRD §21). The same command implementations power Application binaries via cli.Main (see main.go).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(configure func(*orjanda.Site) error)

Main runs the orjanda CLI. When configure is non-nil the process is an Application binary (generated by `orjanda init`): configure registers the Application's Documents against the freshly-created site, so every command sees the app's own schema. When configure is nil the process is the standalone framework CLI (cmd/orjanda): commands inside an Application directory delegate to `go run . <cmd>` so user Documents are compiled in-process, and outside one they operate on a core-only site.

See TAD §16 / PRD §21. The configure callback is the TAD §7.1 "registered in main.go" composition-root hook surfaced to the CLI.

func NewRootCmd

func NewRootCmd(configure func(*orjanda.Site) error) *cobra.Command

NewRootCmd builds the orjanda root command with its subcommands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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