whoami

package
v1.0.64 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdWhoami

func NewCmdWhoami(f *cmdutil.Factory) *cobra.Command

NewCmdWhoami creates the top-level whoami command. It reports the identity that the next API call would actually use (resolved via Factory.ResolveAs), together with the active profile, app, and token status. Output is always JSON — whoami is consumed by agents. With the built-in credential path it is local-only; when an external credential provider manages tokens, resolving the identity may contact that provider.

Types

type Options

type Options struct {
	Factory *cmdutil.Factory
	As      string
}

Options holds inputs for the whoami command.

Jump to

Keyboard shortcuts

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