From abe228b14d97d8d47e8ff4406de387fac45cfe68 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sun, 22 Oct 2023 23:23:18 +0200 Subject: commands: use completion from go-opt Implement command completion with complete struct field tags from the get-opt library introduced earlier. Changelog-changed: Improved command completion. Signed-off-by: Robin Jarry Reviewed-by: Koni Marti Tested-by: Moritz Poldrack Tested-by: Inwit --- commands/terminal/close.go | 4 ---- 1 file changed, 4 deletions(-) (limited to 'commands/terminal') diff --git a/commands/terminal/close.go b/commands/terminal/close.go index 913a3387..610a8463 100644 --- a/commands/terminal/close.go +++ b/commands/terminal/close.go @@ -14,10 +14,6 @@ func (Close) Aliases() []string { return []string{"close"} } -func (Close) Complete(args []string) []string { - return nil -} - func (Close) Execute(args []string) error { term, _ := app.SelectedTabContent().(*app.Terminal) term.Close() -- cgit