autocomplete

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package autocomplete provides helpers for shell completion

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandAutocomplete

func CommandAutocomplete(ctx *cli.Context)

CommandAutocomplete is the function that autocompletes the main command

func LastFlagIs

func LastFlagIs(flagName string) (query string, ok bool)

LastFlagIs tells wether we're completing a flag or not

func ListAllFlags

func ListAllFlags(ctx *cli.Context)

ListAllFlags all possible flags

func ListKeys

func ListKeys(ctx *cli.Context) int

ListKeys lists keys at a given keypath

func ListProviderFlags

func ListProviderFlags(ctx *cli.Context) (keepGoing bool)

ListProviderFlags lists available provider flags for an autocomplete context

Types

This section is empty.

Jump to

Keyboard shortcuts

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