Remove Caller from comp interface

pull/2/head completion
rwxrob 2 years ago
parent d18a7fc13d
commit e6ee287bae
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

@ -189,9 +189,6 @@ func (x *Cmd) Seek(args []string) (*Cmd, []string) {
// GetName fulfills the comp.Command interface.
func (x *Cmd) GetName() string { return x.Name }
// GetCaller fulfills the comp.Command interface.
func (x *Cmd) GetCaller() comp.Command { return x.Caller }
// GetCommands fulfills the comp.Command interface.
func (x *Cmd) GetCommands() []string { return x.CmdNames() }

@ -27,7 +27,6 @@ type Completer func(leaf Command, args []string) []string
// independently.
type Command interface {
GetName() string
GetCaller() Command
GetCommands() []string
GetHidden() []string
GetParams() []string

Loading…
Cancel
Save