mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
pidwait: updated to procps-ng 4.0.5
This commit is contained in:
parent
ff563eb6ce
commit
83757a5aa0
@ -2,6 +2,7 @@ package cmd
|
||||
|
||||
import (
|
||||
"github.com/carapace-sh/carapace"
|
||||
"github.com/carapace-sh/carapace-bin/pkg/actions/env"
|
||||
"github.com/carapace-sh/carapace-bin/pkg/actions/os"
|
||||
"github.com/carapace-sh/carapace-bin/pkg/actions/ps"
|
||||
"github.com/spf13/cobra"
|
||||
@ -17,16 +18,20 @@ var rootCmd = &cobra.Command{
|
||||
func Execute() error {
|
||||
return rootCmd.Execute()
|
||||
}
|
||||
|
||||
func init() {
|
||||
carapace.Gen(rootCmd).Standalone()
|
||||
|
||||
rootCmd.Flags().String("cgroup", "", "match by cgroup v2 names")
|
||||
rootCmd.Flags().BoolP("count", "c", false, "count of matching processes")
|
||||
rootCmd.Flags().BoolP("echo", "e", false, "display PIDs before waiting")
|
||||
rootCmd.Flags().String("env", "", "match on environment variable")
|
||||
rootCmd.Flags().StringP("euid", "u", "", "match by effective IDs")
|
||||
rootCmd.Flags().BoolP("exact", "x", false, "match exactly with the command name")
|
||||
rootCmd.Flags().BoolP("full", "f", false, "use full process name to match")
|
||||
rootCmd.Flags().StringP("group", "G", "", "match real group IDs")
|
||||
rootCmd.Flags().BoolP("help", "h", false, "display this help and exit")
|
||||
rootCmd.Flags().BoolP("ignore-ancestors", "A", false, "exclude our ancestors from results")
|
||||
rootCmd.Flags().BoolP("ignore-case", "i", false, "match case insensitively")
|
||||
rootCmd.Flags().BoolP("logpidfile", "L", false, "fail if PID file is not locked")
|
||||
rootCmd.Flags().BoolP("newest", "n", false, "select most recently started")
|
||||
@ -39,11 +44,13 @@ func init() {
|
||||
rootCmd.Flags().StringP("pidfile", "F", "", "read PIDs from file")
|
||||
rootCmd.Flags().StringP("runstates", "r", "", "match runstates [D,S,Z,...]")
|
||||
rootCmd.Flags().StringP("session", "s", "", "match session IDs")
|
||||
rootCmd.Flags().String("signal", "", "signal to send (either number or name)")
|
||||
rootCmd.Flags().StringP("terminal", "t", "", "match by controlling terminal")
|
||||
rootCmd.Flags().StringP("uid", "U", "", "match by real IDs")
|
||||
rootCmd.Flags().BoolP("version", "V", false, "output version information and exit")
|
||||
|
||||
carapace.Gen(rootCmd).FlagCompletion(carapace.ActionMap{
|
||||
"env": env.ActionNameValues(false).UniqueList(","),
|
||||
"euid": os.ActionUsers(),
|
||||
"group": os.ActionGroups().UniqueList(","),
|
||||
"ns": ps.ActionProcessIds(),
|
||||
@ -52,6 +59,7 @@ func init() {
|
||||
"pidfile": carapace.ActionFiles(),
|
||||
"runstates": ps.ActionProcessStates().UniqueList(","),
|
||||
"session": os.ActionSessionIds().UniqueList(","),
|
||||
"signal": ps.ActionKillSignals(),
|
||||
"terminal": os.ActionTerminals().UniqueList(","),
|
||||
"uid": os.ActionUsers(),
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user