completion

package
v0.20.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package completion provides the defined CLI completion actions for Vela.

Usage:

import "github.com/go-vela/cli/action/completion"

Index

Constants

View Source
const BashAutoComplete = `` /* 554-byte string literal not displayed */

BashAutoComplete represents the script used to enable automatic completion for the Bash (https://www.gnu.org/software/bash/) Unix shell.

View Source
const ZshAutoComplete = `` /* 534-byte string literal not displayed */

ZshAutoComplete represents the script used to enable automatic completion for the Zsh (https://ohmyz.sh/) Unix shell.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Action string
	Bash   bool
	Zsh    bool
}

Config represents the configuration necessary to perform completion related requests with Vela.

func (*Config) Generate

func (c *Config) Generate() error

Generate produces a script used to enable automatic completion for a Unix shell based off the provided configuration.

func (*Config) Validate

func (c *Config) Validate() error

Validate verifies the configuration provided.

Jump to

Keyboard shortcuts

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