cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: AGPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package cli is the abctl command surface, built on Cobra.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command and returns its error (ExitError carries a code).

Types

type ExitError

type ExitError struct{ Code int }

ExitError lets a command request a specific process exit code (e.g. 3 = changes pending).

func (ExitError) Error

func (e ExitError) Error() string

type Spec

type Spec struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Metadata   struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`
	Spec struct {
		Platforms      []string `yaml:"platforms,omitempty"`
		Profile        string   `yaml:"profile,omitempty"`
		ProfileFile    string   `yaml:"profileFile,omitempty"`
		Configurations []string `yaml:"configurations,omitempty"`
	} `yaml:"spec"`
	// contains filtered or unexported fields
}

Spec is a versioned abctl resource document (`get --yaml` output is valid input).

apiVersion: abctl/v1
kind: Configuration|Blueprint
metadata: { name: <name> }
spec: { profile|profileFile|platforms | configurations: [...] }

Jump to

Keyboard shortcuts

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