feat(cli): add max history length

This commit is contained in:
Patryk Hegenberg 2025-01-24 10:11:32 +01:00
parent 8ed3b0c013
commit 7d4a54b34c
2 changed files with 55 additions and 8 deletions

View file

@ -11,7 +11,8 @@ import (
var historyCmd = &cobra.Command{
Use: "history",
Short: "Zeigt die Befehlshistorie an",
Short: "show command history",
Long: "Shows history of the last 2000 commands",
Run: func(cmd *cobra.Command, args []string) {
dirname, err := os.UserConfigDir()
if err != nil {