auth

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLoginStatus

func CheckLoginStatus(impl api.CommandImplementationInterface) func(cmd *cobra.Command, args []string) error

CheckLoginStatus ensures the user is logged in before executing any command.

func RequireLogin

func RequireLogin(impl api.LoginAPI) func(cmd *cobra.Command, args []string) error

RequireLogin returns a PreRunE handler that checks if the user is logged in. Commands that need authentication should add this as their PreRunE.

Types

This section is empty.

Jump to

Keyboard shortcuts

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