Documentation
¶
Overview ¶
Package org provides shared logic for CircleCI organization operations.
Index ¶
- func List(ctx context.Context, client *apiclient.Client) ([]apiclient.Collaboration, error)
- func ParseSlug(slug string) (vcs, orgName string, err error)
- func Require(ctx context.Context, client *apiclient.Client) ([]apiclient.Collaboration, error)
- func Select(ctx context.Context, client *apiclient.Client) (string, error)
- func ValidateSlug(collabs []apiclient.Collaboration, slug string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Require ¶
Require fetches the user's organizations and returns an actionable error when the account has none. Callers that need to ensure at least one org exists before proceeding should use this instead of List.
func Select ¶
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.
Click to show internal directories.
Click to hide internal directories.