plugin

package
v0.0.0-...-b8af85d Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aws

type Aws struct {
	// contains filtered or unexported fields
}

Aws is the plugin struct

func (Aws) Get

func (a Aws) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (Aws) Help

func (Aws) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*Aws) Load

func (a *Aws) Load(Prompter) error

Load is the load function of the plugin

func (Aws) Name

func (Aws) Name() string

Name returns the plugin name

type ExitUserChar

type ExitUserChar struct {
	// contains filtered or unexported fields
}

ExitUserChar is the plugin struct

func (*ExitUserChar) Get

func (euc *ExitUserChar) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (ExitUserChar) Help

func (ExitUserChar) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*ExitUserChar) Load

func (euc *ExitUserChar) Load(Prompter) error

Load is the load function of the plugin

func (ExitUserChar) Name

func (ExitUserChar) Name() string

Name returns the plugin name

type Git

type Git struct {
	// contains filtered or unexported fields
}

Git is the plugin struct

func (Git) Get

func (g Git) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (Git) Help

func (Git) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*Git) Load

func (g *Git) Load(pr Prompter) error

Load is the load function of the plugin

func (Git) Name

func (Git) Name() string

Name returns the plugin name

type Golang

type Golang struct {
	// contains filtered or unexported fields
}

Golang is the plugin struct

func (Golang) Get

func (g Golang) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (Golang) Help

func (Golang) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*Golang) Load

func (g *Golang) Load(Prompter) error

Load is the load function of the plugin

func (Golang) Name

func (Golang) Name() string

Name returns the plugin name

type Hostname

type Hostname struct {
	// contains filtered or unexported fields
}

Hostname is the plugin struct

func (Hostname) Get

func (h Hostname) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (Hostname) Help

func (Hostname) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*Hostname) Load

func (h *Hostname) Load(Prompter) error

Load is the load function of the plugin

func (Hostname) Name

func (Hostname) Name() string

Name returns the plugin name

type Kubernetes

type Kubernetes struct {
	// contains filtered or unexported fields
}

Kubernetes is the plugin struct

func (Kubernetes) Get

func (k Kubernetes) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (Kubernetes) Help

func (Kubernetes) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*Kubernetes) Load

func (k *Kubernetes) Load(Prompter) error

Load is the load function of the plugin

func (Kubernetes) Name

func (Kubernetes) Name() string

Name returns the plugin name

type LastCommand

type LastCommand struct {
	// contains filtered or unexported fields
}

LastCommand is the plugin struct

func (LastCommand) Get

func (lc LastCommand) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (LastCommand) Help

func (LastCommand) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*LastCommand) Load

func (lc *LastCommand) Load(Prompter) error

Load is the load function of the plugin

func (LastCommand) Name

func (LastCommand) Name() string

Name returns the plugin name

type Path

type Path struct {
	// contains filtered or unexported fields
}

Path is the plugin struct

func (Path) Get

func (p Path) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (Path) Help

func (Path) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*Path) Load

func (p *Path) Load(pr Prompter) error

Load is the load function of the plugin

func (Path) Name

func (Path) Name() string

Name returns the plugin name

type Prompter

type Prompter interface {
	GetOption(string) (interface{}, bool)
	GetCache(string) (interface{}, bool)
	Cache(string, interface{}) error
}

Prompter is the interface which provides options/config to the plugin

type Python

type Python struct {
	// contains filtered or unexported fields
}

Python is the plugin struct

func (Python) Get

func (p Python) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (Python) Help

func (Python) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*Python) Load

func (p *Python) Load(Prompter) error

Load is the load function of the plugin

func (Python) Name

func (Python) Name() string

Name returns the plugin name

type User

type User struct {
	// contains filtered or unexported fields
}

User is the plugin struct

func (User) Get

func (u User) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (User) Help

func (User) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*User) Load

func (u *User) Load(Prompter) error

Load is the load function of the plugin

func (User) Name

func (User) Name() string

Name returns the plugin name

type UserChar

type UserChar struct {
	// contains filtered or unexported fields
}

UserChar is the plugin struct

func (*UserChar) Get

func (uc *UserChar) Get(format func(string, ...termcolor.Mode) string) (string, []termcolor.Mode)

Get returns the string to use in the prompt

func (UserChar) Help

func (UserChar) Help() (description string, options map[string]string)

Help returns help information about this plugin

func (*UserChar) Load

func (uc *UserChar) Load(Prompter) error

Load is the load function of the plugin

func (UserChar) Name

func (UserChar) Name() string

Name returns the plugin name

Jump to

Keyboard shortcuts

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