cmd

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 6 Imported by: 5

Documentation

Overview

Package cmd used for command line options for the complete tool

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Name          string
	InstallName   string
	UninstallName string
	// contains filtered or unexported fields
}

CLI for command line

func (*CLI) AddFlags

func (f *CLI) AddFlags(flags *flag.FlagSet)

AddFlags adds the CLI flags to the flag set. If flags is nil, the default command line flags will be taken. Pass non-empty strings as installName and uninstallName to override the default flag names.

func (*CLI) Run

func (f *CLI) Run() bool

Run is used when running complete in command line mode. this is used when the complete is not completing words, but to install it or uninstall it.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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