common

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 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, hooks ...handlers.Hook) handlers.Handler

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

NewHandler resolves the current profile from cli flags, validates credentials, and returns a Handler ready for use. Extension points that need to inject SDK options based on the resolved profile — for example, interceptors that a downstream CLI wants attached to every SDK call — can pass one or more handlers.Hook values, which run in order after profile resolution and before the underlying SDK is built.

Types

This section is empty.

Jump to

Keyboard shortcuts

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