diff --git a/modes/shell/shell.go b/modes/shell/shell.go index 42ec430..0d09297 100644 --- a/modes/shell/shell.go +++ b/modes/shell/shell.go @@ -5,7 +5,9 @@ import ( "errors" "fmt" "os" + "slices" "sort" + "strconv" "strings" "text/tabwriter" @@ -35,6 +37,33 @@ func (e ErrUnrecognizedCommand) Error() string { return fmt.Sprintf("unrecognized command: %q", e.Command) } +type ErrInvalidSetCommand struct { + Command string +} + +func (e ErrInvalidSetCommand) Error() string { + return fmt.Sprintf("invalid set command: %q; expected form `set