search

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(factory cmd.Factory) *cobra.Command

NewCommand returns a new instance of the get command

Types

type Command

type Command struct {
	cmd.Factory
	// EnableDefaults indicates if any defaults with values from the terraform module are included
	EnableDefaults bool
	// Filename is a name where to write the generated configuration, else
	// we default to printing to screen
	Filename string
	// Provider is the module provider
	Provider string
	// Name is the name of the resource
	Name string
	// Source is the registry source
	Source string
	// SourceNamespace is the module namespace
	SourceNamespace string
	// Query is the registry query string
	Query string
	// Writer is the writer to use for output
	Writer io.Writer
}

Command returns the cobra command

func (*Command) Run

func (o *Command) Run(ctx context.Context) (err error)

Run implements the command action

Jump to

Keyboard shortcuts

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