cmd

package
v0.1.24783 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 60 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CollaborationsPath = "me/collaborations"
)

Functions

func CommandStr added in v0.1.15824

func CommandStr() string

Returns a string (e.g. "circleci context list") indicating what subcommand is being called, without any args or flags, for API headers.

func Execute

func Execute()

Execute adds all child commands to rootCmd and sets flags appropriately. This function is called by main.main(). It only needs to happen once to the rootCmd.

func GetConfigAPIHost added in v0.1.24783

func GetConfigAPIHost(cfg *settings.Config) string

func GetOrgIdFromSlug added in v0.1.22100

func GetOrgIdFromSlug(slug string, collaborations []CollaborationResult) string

GetOrgIdFromSlug - converts a slug into an orgID.

func MakeCommands

func MakeCommands() *cobra.Command

MakeCommands creates the top level commands

Types

type CollaborationResult added in v0.1.22100

type CollaborationResult struct {
	VcsTye    string `json:"vcs_type"`
	OrgSlug   string `json:"slug"`
	OrgName   string `json:"name"`
	OrgId     string `json:"id"`
	AvatarUrl string `json:"avatar_url"`
}

func GetOrgCollaborations added in v0.1.22100

func GetOrgCollaborations(cfg *settings.Config) ([]CollaborationResult, error)

GetOrgCollaborations - fetches all the collaborations for a given user.

type ExampleSchema added in v0.1.8731

type ExampleSchema struct {
	Description string             `yaml:"description,omitempty"`
	Usage       ExampleUsageSchema `yaml:"usage,omitempty"`
	Result      ExampleUsageSchema `yaml:"result,omitempty"`
}

type ExampleUsageSchema added in v0.1.8731

type ExampleUsageSchema struct {
	Version   string      `yaml:"version,omitempty"`
	Orbs      interface{} `yaml:"orbs,omitempty"`
	Jobs      interface{} `yaml:"jobs,omitempty"`
	Workflows interface{} `yaml:"workflows"`
}

type OrbSchema added in v0.1.8731

type OrbSchema struct {
	Version     float32                  `yaml:"version,omitempty"`
	Description string                   `yaml:"description,omitempty"`
	Display     yaml.Node                `yaml:"display,omitempty"`
	Orbs        yaml.Node                `yaml:"orbs,omitempty"`
	Commands    yaml.Node                `yaml:"commands,omitempty"`
	Executors   yaml.Node                `yaml:"executors,omitempty"`
	Jobs        yaml.Node                `yaml:"jobs,omitempty"`
	Examples    map[string]ExampleSchema `yaml:"examples,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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