cmd

package
v1.1.21 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendRecord

func AppendRecord(p string, target string)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Fatal

func Fatal(v ...interface{})

func GetDestination added in v1.1.21

func GetDestination(args []string) string

func Print

func Print(v ...interface{})

func PrintInitText

func PrintInitText()

func PrintVersion

func PrintVersion()

func TryCreatFiles

func TryCreatFiles(p string) error

Types

type CdxAction added in v1.1.21

type CdxAction struct {
	Destnation string
	Command    string
	Output     []byte
}

func NewAction added in v1.1.21

func NewAction(command string, dst string) CdxAction

func (CdxAction) Print added in v1.1.21

func (act CdxAction) Print()

func (*CdxAction) Run added in v1.1.21

func (act *CdxAction) Run() error

type Config

type Config struct {
	HistoryFile  string
	BookMarkFile string
	Command      string
	NoOutput     bool
	UseSSH       bool
	Make         bool
	CustomSource []CustomSource
	FuzzyFinder  FuzzyFinder
	BinaryPath   string
}

type CustomSource

type CustomSource struct {
	Name    string
	Command string
}

func (CustomSource) ToString added in v1.1.21

func (cs CustomSource) ToString() string

type FuzzyFinder

type FuzzyFinder struct {
	CommandPath string
	Options     []string
}

func (FuzzyFinder) GetCommand

func (ff FuzzyFinder) GetCommand() []string

type Record

type Record struct {
	Number int
	Path   string
}

func (Record) Compare

func (s Record) Compare(t Record) bool

func (Record) ToString

func (rcd Record) ToString() string

type Version

type Version struct {
	Major  int
	Minor  int
	Build  int
	Status string
	Date   string
}

func (Version) ToString

func (v Version) ToString() string

Jump to

Keyboard shortcuts

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