complete: Index | Files | Directories

package cmd

import ""

Package cmd used for command line options for the complete tool


Package Files


type CLI Uses

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

CLI for command line

func (*CLI) AddFlags Uses

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 Uses

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.



Package cmd imports 6 packages (graph) and is imported by 2 packages. Updated 2019-08-11. Refresh now. Tools for package owners.