Skip to content

Commit

Permalink
ps: added uids
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Sep 15, 2024
1 parent e5d528c commit f0afe9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/actions/ps/ps.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func ActionKillSignals() carapace.Action {
"XCPU", "CPU time limit exceeded", styles.CarapaceBin.KillSignalCore,
"XFSZ", "File size limit exceeded", styles.CarapaceBin.KillSignalCore,
)
}).Tag("kill signals")
}).Tag("kill signals").Uid("ps", "signal")
}

// ActionProcessExecutables completes executable names of current processes
Expand All @@ -66,7 +66,7 @@ func ActionProcessExecutables() carapace.Action {
}
return carapace.ActionValuesDescribed(executables...)
}
}).Tag("process executables")
}).Tag("process executables").Uid("ps", "executable")
}

// ActionProcessIds completes proces IDs
Expand All @@ -84,7 +84,7 @@ func ActionProcessIds() carapace.Action {
}
return carapace.ActionValuesDescribed(ids...)
}
}).Tag("process ids")
}).Tag("process ids").Uid("ps", "id")
}

// ActionProcessStates completes linux process states
Expand All @@ -102,5 +102,5 @@ func ActionProcessStates() carapace.Action {
"X", "dead (should never be seen)",
"Z", "defunct (zombie) process, terminated but not reaped by its parent",
"t", "stopped by debugger during the tracing",
).Tag("process states")
).Tag("process states").Uid("ps", "state")
}

0 comments on commit f0afe9f

Please sign in to comment.