fix reproducibility issues

This commit is contained in:
3pleX-dev
2025-04-05 01:27:23 +01:00
parent 3d440cf0f6
commit 1d93982424
2 changed files with 13 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ package cli
import (
"fmt"
"sort"
"strings"
"kitty/tools/cli/markup"
@@ -22,6 +23,7 @@ func fish_completion_script(commands []string) (string, error) {
}
if len(commands) == 0 {
commands = append(commands, utils.Keys(all_commands)...)
sort.Strings(commands)
}
script := strings.Builder{}
script.WriteString(`function __ksi_completions