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

status

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package status implements the auth status command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdStatus

func NewCmdStatus(f *cmdutil.Factory, runF func(*StatusOptions) error) *cobra.Command

NewCmdStatus creates the status command

Types

type AuthStatus added in v0.5.0

type AuthStatus struct {
	Hostname    string `json:"hostname"`
	LoggedIn    bool   `json:"logged_in"`
	Username    string `json:"username,omitempty"`
	TokenSource string `json:"token_source,omitempty"`
	TokenValid  bool   `json:"token_valid,omitempty"`
	GitProtocol string `json:"git_protocol,omitempty"`
	Token       string `json:"token,omitempty"`
}

AuthStatus represents the JSON output structure for auth status

type StatusOptions

type StatusOptions struct {
	IO         *iostreams.IOStreams
	HttpClient func() (*http.Client, error)
	Config     func() (config.Config, error)

	// Flags
	Hostname    string
	HostnameSet bool
	ShowToken   bool
	JSON        bool
}

Source Files

  • status.go

Jump to

Keyboard shortcuts

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