Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ExamplesFS embed.FS
ExamplesFS holds the real example manifests (copied from the shipping civitai-block-* apps). They are embedded so the validate test can assert the "examples validate clean" claim against the same files the README points to.
View Source
var SchemaJSON []byte
SchemaJSON is the vendored App Block manifest JSON Schema, embedded so the CLI validates against the same contract it ships. The file is the canonical copy intended to also be published server-side (see README).
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
civitai
command
Command civitai is the unified Civitai CLI.
|
Command civitai is the unified Civitai CLI. |
|
internal
|
|
|
api
Package api is the (thin) HTTP client for the Civitai App Blocks surface.
|
Package api is the (thin) HTTP client for the Civitai App Blocks surface. |
|
auth
Package auth bridges the persisted config and the api.TokenSource contract: it yields a Bearer token for the api client, refreshing device-flow OAuth tokens (and persisting the rotated refresh token) when they expire or after a 401.
|
Package auth bridges the persisted config and the api.TokenSource contract: it yields a Bearer token for the api client, refreshing device-flow OAuth tokens (and persisting the rotated refresh token) when they expire or after a 401. |
|
cmd
Package cmd wires the cobra command tree for the civitai CLI.
|
Package cmd wires the cobra command tree for the civitai CLI. |
|
config
Package config handles the CLI's persisted configuration (API base URL and token) via Viper.
|
Package config handles the CLI's persisted configuration (API base URL and token) via Viper. |
|
manifest
Package manifest holds the App Block manifest filename constant and a lightweight reader for the fields the CLI needs (slug/version/name).
|
Package manifest holds the App Block manifest filename constant and a lightweight reader for the fields the CLI needs (slug/version/name). |
|
pkgzip
Package pkgzip packages an App Block project directory into the canonical ZIP the platform build recipe expects: the SOURCE tree (manifest + src + build config), with build artifacts and VCS/dependency dirs excluded.
|
Package pkgzip packages an App Block project directory into the canonical ZIP the platform build recipe expects: the SOURCE tree (manifest + src + build config), with build artifacts and VCS/dependency dirs excluded. |
|
scaffold
Package scaffold renders embedded App Block project templates onto disk.
|
Package scaffold renders embedded App Block project templates onto disk. |
|
validate
Package validate checks a block.manifest.json against the vendored JSON Schema plus structural project checks (manifest at root, build coherence).
|
Package validate checks a block.manifest.json against the vendored JSON Schema plus structural project checks (manifest at root, build coherence). |
Click to show internal directories.
Click to hide internal directories.