Documentation
¶
Overview ¶
Package completion serves dynamic shell completions (organization slugs, namespaces, data source and job ids, language codes) from the API.
Completion must never get in the way of typing: every lookup has a one second budget, results are cached for a minute per profile and organization, nothing prompts, and any failure simply offers nothing.
Index ¶
Constants ¶
View Source
const Budget = time.Second
Budget is how long one lookup may take.
View Source
const TTL = time.Minute
TTL is how long a cached answer is reused.
Variables ¶
This section is empty.
Functions ¶
func Flag ¶
func Flag(key string, fetch Fetcher) cobra.CompletionFunc
Flag returns a cobra completion function for a flag value.
Types ¶
Click to show internal directories.
Click to hide internal directories.