cmd

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: AGPL-3.0 Imports: 61 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 Execute

func Execute()

func Version added in v0.2.13

func Version() string

Version reports the CLI version. A released build carries the tag it was cut from; anything else reports its module version or "dev".

Types

type InstanceSummary added in v0.2.13

type InstanceSummary struct {
	Name     string `json:"name" yaml:"name"`
	Selected bool   `json:"selected" yaml:"selected"`
	Status   string `json:"status" yaml:"status"`
	Port     int    `json:"port,omitempty" yaml:"port,omitempty"`
	APIPort  int    `json:"apiPort,omitempty" yaml:"apiPort,omitempty"`
	Version  string `json:"version,omitempty" yaml:"version,omitempty"`
	Profile  string `json:"profile" yaml:"profile"`
}

InstanceSummary is one row of `agyn local list`.

type RunContext

type RunContext struct {
	Config  *config.Config
	Clients *gateway.Clients
	// ProfileName is the profile this invocation runs under. Endpoint, token,
	// CA and organization all resolve through it, so a command never has to
	// know which cluster it is talking to.
	ProfileName  string
	OutputFormat output.Format
	NoColor      bool
}

func RunContextFrom

func RunContextFrom(cmd *cobra.Command) (*RunContext, error)

func (*RunContext) OrganizationID added in v0.2.13

func (r *RunContext) OrganizationID(flag string) string

OrganizationID resolves the organization a command acts in from local settings alone: an explicit flag, then the environment, then the profile's selection. An empty result means nothing local chose one — see resolveOrganizationID, which then asks the Gateway.

Jump to

Keyboard shortcuts

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