kitty/tools/cli
Eng Zer Jun 77563cebb0
cli/command: remove redundant nil check
From the Go specification:

  "1. For a nil slice, the number of iterations is 0." [1]

Therefore, an additional nil check for before the loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-30 11:50:52 +08:00
..
markup More work on porting transfer kitten 2023-07-30 19:49:39 +05:30
bash.go Clean up previous PR 2023-02-03 16:14:24 +05:30
command.go cli/command: remove redundant nil check 2023-08-30 11:50:52 +08:00
completion-main.go Remove unused code 2023-08-05 10:11:15 +05:30
completion-parse-args.go All completion tests pass again 2022-11-14 15:42:02 +05:30
completion.go readline: Automatically do word completion based on history 2023-03-07 16:44:02 +05:30
files_test.go More work on merging completions with parse tree 2022-11-14 15:42:02 +05:30
files.go explicitly ignore a few errors 2022-12-13 16:19:46 +05:30
fish.go Use maps package for generic keys/values functions 2023-03-14 22:49:40 +05:30
group.go Allow un-ambiguous prefixes for command names 2022-11-14 15:42:03 +05:30
help.go Allow passing multiple options to control how wrapping is done 2023-03-29 20:56:24 +05:30
option-from-string.go Detect prompt lines in code blocks 2023-07-30 19:49:47 +05:30
option.go Allow using unabiguous long option prefixes 2022-11-14 15:42:03 +05:30
parse-args.go dont parse args for the ssh kitten as it will do so itself 2023-02-26 08:01:02 +05:30
types_test.go Import the google shlex package as we need more sophisticated parsing 2022-11-14 15:42:08 +05:30
zsh.go Allow passing multiple options to control how wrapping is done 2023-03-29 20:56:24 +05:30