org

package
v1.0.48692 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package org provides shared logic for CircleCI organization operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

List fetches the organizations the authenticated user belongs to.

func ParseSlug

func ParseSlug(slug string) (vcs, orgName string, err error)

ParseSlug splits "gh/myorg" into its VCS and org components.

func Require

func Require(ctx context.Context, client *apiclient.Client) ([]apiclient.Collaboration, error)

Require fetches the user's organizations and returns an actionable error when the account has none. In interactive mode, offers to create a new CircleCI organization on the spot.

func Select

func Select(ctx context.Context, client *apiclient.Client) (string, error)

Select fetches the user's organizations and presents an interactive picker. With exactly one org it is auto-selected; with multiple the user picks.

func ValidateSlug

func ValidateSlug(collabs []apiclient.Collaboration, slug string) error

ValidateSlug checks that the given org slug is among the user's organizations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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