Start moving clipboard kitten to kitty-tool

This commit is contained in:
Kovid Goyal
2022-11-25 12:58:10 +05:30
parent fbce5e7524
commit 4d3f3b5e91
9 changed files with 167 additions and 28 deletions

View File

@@ -14,6 +14,8 @@ import (
var _ = fmt.Print
type RunFunc = func(cmd *Command, args []string) (int, error)
type Command struct {
Name, Group string
Usage, ShortDescription, HelpText string
@@ -26,7 +28,7 @@ type Command struct {
// If true subcommands are ignored unless they are the first non-option argument
SubCommandMustBeFirst bool
// The entry point for this command
Run func(cmd *Command, args []string) (int, error)
Run RunFunc
// The completer for args
ArgCompleter CompletionFunc
// Stop completion processing at this arg num