states

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package states contains a stateful schema-v2 for a CLI. Bootstrapped with am-gen. Edit manually or re-gen & merge.

Index

Constants

This section is empty.

Variables

View Source
var (

	// CliStates contains all the states for the Cli machine.
	CliStates = ssV
	// CliGroups contains all the state groups for the Cli machine.
	CliGroups = sgV
)
View Source
var CliSchema = SchemaMerge(

	ss.BasicSchema,

	ss.DisposedSchema,
	am.Schema{
		ssV.Foo1: {
			Add:   S{ssV.Start},
			After: S{ssV.Start},
		},
		ssV.Bar2: {
			Add:   S{ssV.Start},
			After: S{ssV.Start},
		},
	})

CliSchema represents all relations and properties of CliStates.

Functions

This section is empty.

Types

type CliGroupsDef

type CliGroupsDef struct {
}

CliGroupsDef contains all the state groups Cli state machine.

type CliStatesDef

type CliStatesDef struct {
	*am.StatesBase

	Foo1 string
	Bar2 string

	// inherit from BasicStatesDef
	*ss.BasicStatesDef
	// inherit from DisposedStatesDef
	*ss.DisposedStatesDef
}

CliStatesDef contains all the states of the Cli state machine.

Jump to

Keyboard shortcuts

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