util

package
v0.1.0-latest-stable Latest Latest
Warning

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

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

Documentation

Overview

Package util contains shared dpfctl helpers.

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Verbose controls whether debug output is printed.

Functions

func Debug

func Debug(format string, a ...any)

Debug prints a debug message (only when --verbose is set).

func Failure

func Failure(format string, a ...any)

Failure prints a failure message indented under the current step.

func Info

func Info(format string, a ...any)

Info prints an informational message indented under the current step.

func Result

func Result(format string, a ...any)

Result prints a final result line.

func ResultFail

func ResultFail(format string, a ...any)

ResultFail prints a final failure result line.

func StartSpinner

func StartSpinner(format string, a ...any) func()

StartSpinner starts an animated spinner with a message. Returns a stop function that clears the spinner line. Call stop() before printing the next line. In non-TTY environments (CI, kubectl exec), prints a static line instead.

func Step

func Step(format string, a ...any)

Step prints a top-level step heading.

func Success

func Success(format string, a ...any)

Success prints a success message indented under the current step.

func Warn

func Warn(format string, a ...any)

Warn prints a warning message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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