cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "0.2.0-dev"
	Commit    = ""
	BuildDate = ""
)

Version, Commit, and BuildDate describe the running binary. Release builds overwrite them with -ldflags -X; local builds keep the -dev default.

Functions

func AddChapter

func AddChapter(_ context.Context, args []string, out io.Writer) error

func AddFragment

func AddFragment(_ context.Context, args []string, out io.Writer) error

func AddSection

func AddSection(_ context.Context, args []string, out io.Writer) error

func Cover

func Cover(ctx context.Context, args []string, out io.Writer) error

func Init

func Init(ctx context.Context, args []string, out io.Writer) error

func InstallSkill

func InstallSkill(args []string, out io.Writer) error

InstallSkill prints an agent-agnostic bootstrap prompt. The active coding agent owns the platform-specific skill location and format; the saga binary supplies the behavior contract without mutating the user's repository.

func PrintHelp

func PrintHelp(out io.Writer)

func Query

func Query(ctx context.Context, args []string, out io.Writer) error

Query executes one read-only application query and writes exactly one JSON value for every ordinary outcome, including help and invalid input. The returned StatusError only communicates the already-rendered exit status to the process entrypoint; callers must not print it.

func Reply

func Reply(_ context.Context, args []string, out io.Writer) error

func Review

func Review(_ context.Context, args []string, out io.Writer) error

func Serve

func Serve(ctx context.Context, args []string, out io.Writer, openByDefault ...bool) error

func Spec

func Spec(args []string, out io.Writer) error

func Status

func Status(ctx context.Context, args []string, out io.Writer) error

func Thread

func Thread(_ context.Context, args []string, out io.Writer) error

func Validate

func Validate(_ context.Context, args []string, out io.Writer) error

func VersionString

func VersionString() string

VersionString renders the version plus whatever build metadata was injected.

Types

type StatusError

type StatusError struct{ Code int }

func (*StatusError) Error

func (e *StatusError) Error() string

Jump to

Keyboard shortcuts

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