aeCMD

package
v0.0.0-...-1f1f075 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, o Option, cmd *cobra.Command, args []string) error

Types

type Option

type Option interface {
	// Complete is the method where the option is extracting the data from the
	// args and is setting its different attributes.
	Complete(args []string) error
	// Validate is ensuring that the different value of its attribute are
	// coherent (when it makes sense).
	Validate() error
	// Execute is the method used by the command to actually run the business
	// logic.
	Execute(context.Context) error
	SetWriter(writer io.Writer)
}

Directories

Path Synopsis
oci
pki

Jump to

Keyboard shortcuts

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