mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
uptime: updated to procps-ng 4.0.5
This commit is contained in:
parent
77cb8fa9ec
commit
596040f6ed
@ -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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user