util

package
v2.56.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package util provides utility functions and types for the aqua CLI package. It contains shared functionality for parameter handling, configuration parsing, and common CLI operations used across different commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetParam

func SetParam(cmd *cli.Command, logE *logrus.Entry, commandName string, param *config.Param, ldFlags *urfave.LDFlags) error

SetParam configures the parameter struct with values from CLI flags, environment variables, and default settings. It processes command-line arguments, sets up logging, configures security settings, and initializes various operational parameters for aqua commands.

Types

type Param

type Param struct {
	Stdin   io.Reader
	Stdout  io.Writer
	Stderr  io.Writer
	LDFlags *urfave.LDFlags
	LogE    *logrus.Entry
	Runtime *runtime.Runtime
}

Param holds common parameters used across CLI commands. It contains I/O streams, build information, logging configuration, and runtime information needed for command execution.

Jump to

Keyboard shortcuts

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