cmd

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package cmd provides CLI commands for the CERN SSO tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetOTPProvider

func GetOTPProvider() *auth.OTPProvider

GetOTPProvider returns an OTP provider configured with CLI flags.

func GetWebAuthnProvider

func GetWebAuthnProvider() *auth.WebAuthnProvider

GetWebAuthnProvider returns a WebAuthn provider configured with CLI flags.

func PreferWebAuthn

func PreferWebAuthn() bool

PreferWebAuthn returns true if WebAuthn should be preferred over OTP.

func SetVersion

func SetVersion(v string)

SetVersion sets the version string (called from main).

Types

This section is empty.

Jump to

Keyboard shortcuts

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