cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	IOS gencli.IOStreams
	// contains filtered or unexported fields
}

Actions implements the gencli Actions interface and can be passed via the gencli.Factory

func NewActions

func NewActions(version string) *Actions

func (Actions) HelpFunc

func (a Actions) HelpFunc(cmd *spec.CommandItem)

func (Actions) IOStreams

func (a Actions) IOStreams() gencli.IOStreams

func (Actions) OcliCheck

func (a Actions) OcliCheck(_ context.Context, args gencli.OcliCheckArgs, flags gencli.OcliCheckFlags) error

OcliCheck implements the `ocli check` command and uses the `validate` package to validate/check the specified document.

func (Actions) OcliGenCli

func (a Actions) OcliGenCli(_ context.Context, args gencli.OcliGenCliArgs, flags gencli.OcliGenCliFlags) error

func (Actions) OcliGenDocs

func (a Actions) OcliGenDocs(_ context.Context, args gencli.OcliGenDocsArgs, flags gencli.OcliGenDocsFlags) error

func (Actions) UsageFunc

func (a Actions) UsageFunc(cmd *spec.CommandItem) error

func (Actions) Version

func (a Actions) Version() string

Jump to

Keyboard shortcuts

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