Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveID ¶
ResolveID resolves a group identifier which may be an ID or a name. If ident is empty, it attempts to resolve the active group (env/flag/file). If multiple groups share the same name, returns an error listing candidates.
func ResolveWithAuto ¶
ResolveWithAuto tries to resolve a group, allowing name or ID. If ident is empty and no active group is set, it auto-selects a sensible default: private group matching username (if present), else the first group returned. Returns the resolved ID and whether an auto-selection was applied (in which case it also persists it as active).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.