Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAuthenticated ¶ added in v0.1.6
func EnsureAuthenticated() bool
EnsureAuthenticated checks if valid authentication exists, and if not, triggers the login flow automatically. This is a non-interactive version intended for use in automated workflows. Returns true if authentication is valid or was successfully obtained.
func EnsureAuthenticatedE ¶ added in v0.1.6
func EnsureAuthenticatedE() error
EnsureAuthenticatedE checks if valid authentication exists, and if not, triggers the login flow automatically. Returns an error if authentication fails, suitable for use in Cobra PreRunE hooks.
func LoginAction ¶
func LoginAction() error
func LogoutAction ¶
func LogoutAction() error
func SetURLAction ¶
func SetURLAction()
func WriteConfigFileSilent ¶
func WriteConfigFileSilent()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.