cmds

package
v0.0.0-...-c922539 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEval

func NewEval(aml *AML) *cobra.Command

func NewFmt

func NewFmt(aml *AML) *cobra.Command

func NewRootCommand

func NewRootCommand() *cobra.Command

Types

type AML

type AML struct {
}

func (*AML) Customize

func (a *AML) Customize(cmd *cobra.Command)

func (*AML) Output

func (a *AML) Output(data any) error

func (*AML) Run

func (a *AML) Run(cmd *cobra.Command, args []string) error

type Eval

type Eval struct {
	ArgsFile    string `usage:"Default arguments to pass" default:".args.acorn"`
	PrintArgs   bool   `usage:"Evaluate the file and print args description"`
	PrintSchema bool   `usage:"Evaluate the file as schema and print schema description"`
	SchemaFile  string `usage:"Validate result against schema file"`
	// contains filtered or unexported fields
}

func (*Eval) Customize

func (e *Eval) Customize(cmd *cobra.Command)

func (*Eval) Run

func (e *Eval) Run(cmd *cobra.Command, args []string) error

type Fmt

type Fmt struct {
	// contains filtered or unexported fields
}

func (*Fmt) Run

func (e *Fmt) Run(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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