config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package config implements configuration management commands for wherehouse.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheckCmd added in v0.2.0

func NewCheckCmd() *cobra.Command

NewCheckCmd returns the config check subcommand, which validates configuration files for errors.

func NewConfigCmd added in v0.2.0

func NewConfigCmd() *cobra.Command

NewConfigCmd returns the config command, initializing it if necessary.

func NewInitCmd added in v0.2.0

func NewInitCmd() *cobra.Command

NewInitCmd returns the config init subcommand, which creates a new configuration file with default values.

func NewPathCmd added in v0.2.0

func NewPathCmd() *cobra.Command

NewPathCmd returns the config path subcommand, which shows the locations of configuration files.

func SetFilesystem

func SetFilesystem(fs afero.Fs)

SetFilesystem allows injecting a filesystem implementation for testing. This enables unit tests to use in-memory filesystems without touching the real filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

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