preparers

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyAliases

func ApplyAliases(ctx context.Context) (context.Context, error)

ApplyAliases consolidates flags with aliases into a single source-of-truth flag. After calling this, the main flags will have their values set as follows:

  • If the main flag was already set, it will keep its value.
  • If it was not set, but an alias was, it will take the value of the first specified alias flag. This will set flag.Changed to true, as if it were specified manually.
  • If none of the flags were set, the main flag will remain its default value.

func DetermineConfigDir

func DetermineConfigDir(ctx context.Context) (context.Context, error)

func InitClient

func InitClient(ctx context.Context) (context.Context, error)

func LoadConfig

func LoadConfig(ctx context.Context) (context.Context, error)

Types

type Preparer

type Preparer func(context.Context) (context.Context, error)

Jump to

Keyboard shortcuts

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