package cmd

import "github.com/posener/complete/cmd"

Package cmd used for command line options for the complete tool

Index

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.

Source Files

cmd.go

Directories

PathSynopsis
cmd/install
Version
v1.2.3 (latest)
Published
Oct 23, 2019
Platform
linux/amd64
Imports
6 packages
Last checked
1 month ago

Tools for package owners.