Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleSuccess ¶
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 ¶
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.