common

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: BSD-3-Clause-Clear Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSuccess

func HandleSuccess(command *cobra.Command, id string, t table.Model, policyObject interface{})

HandleSuccess prints a success message according to the configured format (styled table or JSON)

func InitProfile

func InitProfile(c *cli.Cli) *profiles.OtdfctlProfileStore

InitProfile initializes the profile store and loads the profile specified in the flags if onlyNew is set to true, a new profile will be created and returned returns the profile and the current profile store

func NewHandler

func NewHandler(c *cli.Cli) handlers.Handler

instantiates a new handler with authentication via client credentials TODO make this a preRun hook

Types

This section is empty.

Jump to

Keyboard shortcuts

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