groups

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveID

func ResolveID(client *api.Client, ident string, fallbackFlag string) (string, error)

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

func ResolveWithAuto(client *api.Client, ident string, fallbackFlag string) (string, bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL