search

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	*command.BaseCommand
	// contains filtered or unexported fields
}

Command implements the `search` subcommand, providing asset search capabilities. It parses flags and delegates to the `search.Service` to perform queries.

func NewSearchCommand

func NewSearchCommand(cmdContext *command.Context) *Command

func (*Command) Args

func (c *Command) Args() command.PositionalArgs

func (*Command) DefaultOutputType added in v0.1.0

func (c *Command) DefaultOutputType() command.OutputType

func (*Command) Examples

func (c *Command) Examples() []string

func (*Command) Init

func (c *Command) Init() error

Init sets up command flags and config-backed defaults.

func (*Command) Long

func (c *Command) Long() string

Long returns a detailed description of the command.

func (*Command) PreRun

func (c *Command) PreRun(cmd *cobra.Command, args []string) cenclierrors.CencliError

PreRun validates flags and prepares the command for execution.

func (*Command) RenderShort added in v0.1.0

func (c *Command) RenderShort() cenclierrors.CencliError

RenderShort renders search results in short format.

func (*Command) RenderTemplate added in v0.1.0

func (c *Command) RenderTemplate() cenclierrors.CencliError

RenderTemplate renders search results using a handlebars template.

func (*Command) Run

func (c *Command) Run(cmd *cobra.Command, args []string) cenclierrors.CencliError

Run executes the command by calling the search service and rendering results.

func (*Command) Short

func (c *Command) Short() string

func (*Command) SupportedOutputTypes added in v0.1.0

func (c *Command) SupportedOutputTypes() []command.OutputType

func (*Command) SupportsStreaming added in v0.1.0

func (c *Command) SupportsStreaming() bool

func (*Command) Tapes

func (*Command) Tapes(recorder *tape.Recorder) []tape.Tape

func (*Command) Use

func (c *Command) Use() string

Jump to

Keyboard shortcuts

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