complete

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Complete

func Complete(shell Shell, args []string) string

Complete returns the completions output for the provided shell and arguments.

Types

type Fish

type Fish struct{}

func (Fish) Complete

func (f Fish) Complete(vals []core.KeyVal) string

func (Fish) Name

func (f Fish) Name() string

func (Fish) Register

func (f Fish) Register() string

type Shell

type Shell interface {
	Name() string
	Register() string
	Complete([]core.KeyVal) string
}

Shell represents a supported shell for completions.

func GetShell

func GetShell(name string) Shell

GetShell returns the shell matching the provided name. If no shell matches, nil is returned.

type Zsh

type Zsh struct{}

func (Zsh) Complete

func (z Zsh) Complete(vals []core.KeyVal) string

func (Zsh) Name

func (z Zsh) Name() string

func (Zsh) Register

func (z Zsh) Register() string

Jump to

Keyboard shortcuts

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