Added tload completer

This commit is contained in:
Saurabh Kushwah 2025-04-19 00:00:07 +05:30
parent 8371a71c72
commit 77cb8fa9ec
No known key found for this signature in database
GPG Key ID: 8E11E1DCD6CCE8D5
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,26 @@
package cmd
import (
"github.com/carapace-sh/carapace"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "tload",
Short: "graphic representation of system load average",
Long: "https://www.man7.org/linux/man-pages/man1/tload.1.html",
Run: func(cmd *cobra.Command, args []string) {},
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
rootCmd.Flags().StringP("delay", "d", "", "update delay in seconds")
rootCmd.Flags().BoolP("help", "h", false, "display this help and exit")
rootCmd.Flags().StringP("scale", "s", "", "vertical scale")
rootCmd.Flags().BoolP("version", "V", false, "output version information and exit")
}

View File

@ -0,0 +1,7 @@
package main
import "github.com/carapace-sh/carapace-bin/completers/tload_completer/cmd"
func main() {
cmd.Execute()
}