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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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