uptime: updated to procps-ng 4.0.5

This commit is contained in:
Saurabh Kushwah 2025-04-19 12:59:21 +05:30
parent 77cb8fa9ec
commit 596040f6ed
No known key found for this signature in database
GPG Key ID: 8E11E1DCD6CCE8D5

View File

@ -8,18 +8,21 @@ import (
var rootCmd = &cobra.Command{
Use: "uptime",
Short: "Tell how long the system has been running",
Long: "https://linux.die.net/man/1/uptime",
Long: "https://man7.org/linux/man-pages/man1/uptime.1.html",
Run: func(cmd *cobra.Command, args []string) {},
}
func Execute() error {
return rootCmd.Execute()
}
func init() {
carapace.Gen(rootCmd).Standalone()
rootCmd.Flags().BoolP("container", "c", false, "show container uptime")
rootCmd.Flags().BoolP("help", "h", false, "display this help and exit")
rootCmd.Flags().BoolP("pretty", "p", false, "show uptime in pretty format")
rootCmd.Flags().BoolP("raw", "r", false, "show uptime values in raw format")
rootCmd.Flags().BoolP("since", "s", false, "system up since")
rootCmd.Flags().BoolP("version", "V", false, "output version information and exit")
}