schema

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package schema implements the `aiwf schema ` verb (per-verb subpackage of M-0116; cmd/aiwf/main.go's newRootCmd wires it via NewCmd).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd builds `aiwf schema [kind]`: prints the frontmatter contract for one kind or for all six. Read-only; produces no commit and does not require a consumer repo. The intended audience is skill authors writing recipes that hand-edit aiwf-managed files — they can read the schema once and stop guessing field names.

func Run

func Run(args []string, format string, pretty bool) int

Run executes `aiwf schema`. Returns one of the cliutil.Exit* codes.

func WriteSchemaText

func WriteSchemaText(w io.Writer, schemas []entity.Schema) error

WriteSchemaText renders schemas one block per kind, in a fixed-column layout that aligns the field-description rows under each header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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