persescmd

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(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() error
	SetWriter(writer io.Writer)
}

Directories

Path Synopsis
dac

Jump to

Keyboard shortcuts

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