info

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdInfo

func NewCmdInfo(ig Infoer) *cobra.Command

NewCmdInfo returns an instance of Search command.

Types

type Infoer

type Infoer interface {
	Search(term string) ([]internal.SearchResult, error)
	Info(path string) (string, error)
	Imports(path string) ([]string, error)
	Importers(path string) ([]string, error)
}

Infoer is exported.

type Options

type Options struct {
	Term          string
	ShowImports   bool
	ShowImporters bool
	WithDoc       bool
}

Options is exported.

func (*Options) Execute

func (o *Options) Execute(ig Infoer)

Execute is exported.

func (*Options) Fill added in v0.4.0

func (o *Options) Fill(cmd *cobra.Command)

Fill fills flags into options.

Jump to

Keyboard shortcuts

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