Help us shape the future of Go! Take the 2026 Go Developer Survey

get

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewCmd creates a new cobra command.

func NewSelfCmd

func NewSelfCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewSelfCmd creates a new command.

func NewVersionCmd

func NewVersionCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewVersionCmd creates a new command.

func NewWorkspaceCmd

func NewWorkspaceCmd(globalFlags *flags.GlobalFlags) *cobra.Command

NewWorkspaceCmd creates a new command.

Types

type SelfCmd

type SelfCmd struct {
	*flags.GlobalFlags
}

SelfCmd holds the cmd flags.

func (*SelfCmd) Run

func (cmd *SelfCmd) Run(
	ctx context.Context,
	stdin io.Reader,
	stdout io.Writer,
	stderr io.Writer,
) error

type VersionCmd

type VersionCmd struct {
	*flags.GlobalFlags
}

VersionCmd holds the cmd flags.

func (*VersionCmd) Run

func (cmd *VersionCmd) Run(
	ctx context.Context,
	stdin io.Reader,
	stdout io.Writer,
	stderr io.Writer,
) error

type VersionInfo

type VersionInfo struct {
	// ServerVersion is the platform deployment version
	ServerVersion string `json:"serverVersion,omitempty"`

	// RemoteProviderVersion is the desired provider version of the current platform deployment
	RemoteProviderVersion string `json:"remoteProviderVersion,omitempty"`

	// CurrentProviderVersion is the currently installed provider version
	CurrentProviderVersion string `json:"currentProviderVersion,omitempty"`
}

type WorkspaceCmd

type WorkspaceCmd struct {
	*flags.GlobalFlags
}

WorkspaceCmd holds the cmd flags.

func (*WorkspaceCmd) Run

func (cmd *WorkspaceCmd) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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