shared

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGroupByName

func FindGroupByName(ctx util.CmdContext, organization, project, groupName, descriptorFilter string) (*graph.GraphGroup, error)

FindGroupByName locates a single Azure DevOps security group by its display name and optional descriptor. When descriptorFilter is empty, exactly one group must match the provided name within the optional scope descriptor.

Types

type Target

type Target struct {
	Organization string
	Project      string
	GroupName    string
}

Target encapsulates the parsed components of a security group target argument.

func ParseTarget

func ParseTarget(target string) (*Target, error)

ParseTarget validates and parses a target argument of form ORGANIZATION/GROUP or ORGANIZATION/PROJECT/GROUP.

func ParseTargetWithDefault

func ParseTargetWithDefault(ctx util.CmdContext, target string) (*Target, error)

ParseTargetWithDefault resolves a target argument that allows an implicit organization by falling back to the configured default. The accepted formats are:

  • "GROUP" (defaults organization, no project)
  • "ORGANIZATION/GROUP"
  • "ORGANIZATION/PROJECT/GROUP"

Jump to

Keyboard shortcuts

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