fish

package
v0.0.0-...-a14623b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewShell

func NewShell(config *gomplete.ShellConfig) (gomplete.Shell, error)

NewShell returns a shell instance from shell config.

Types

type Shell

type Shell struct {
	*gomplete.ShellConfig
	// contains filtered or unexported fields
}

Shell is the implementation of gomplete.Shell for fish.

func (*Shell) Args

func (s *Shell) Args() *gomplete.Args

Args returns returns command-line arguments to complete.

func (*Shell) FormatReply

func (s *Shell) FormatReply(reply gomplete.Reply, w io.Writer) error

FormatReply returns reply keys joined by newline.

func (*Shell) OutputScript

func (s *Shell) OutputScript(w io.Writer) error

OutputScript returns the shell script to parse replies.

func (*Shell) Usage

func (s *Shell) Usage(cmdline string) string

Usage returns the usage of the shell script.

Jump to

Keyboard shortcuts

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