completion

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompletePluralResource   = 1
	CompleteSingularResource = 2
	CompleteAttributeKey     = 4
	CompleteAttributeValue   = 8
	CompleteQueryParam       = 16
	CompleteCrudAction       = 32
	CompleteAlias            = 64
)
View Source
const (
	Get    = 1
	Create = 2
	Update = 4
	Delete = 8
	GetAll = 16
)

Variables

This section is empty.

Functions

func Complete

func Complete(c Request) ([]string, cobra.ShellCompDirective)

Types

type Request

type Request struct {
	Type       int
	Resource   resources.Resource
	Attributes map[string]int
	Verb       int
	Attribute  string
}

Jump to

Keyboard shortcuts

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