mode

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mode is an abstraction for executing the various "modes" supported by Ferrite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetDefaultConfig added in v0.5.0

func ResetDefaultConfig()

ResetDefaultConfig resets DefaultConfig to its initial value. This is largely intended for tearing down tests.

Types

type Config added in v0.5.0

type Config struct {
	Registries variable.RegistrySet
	Args       []string
	Out        io.Writer
	Err        io.Writer
	Exit       func(int)
}

Config is the configuration used when running a mode.

var DefaultConfig Config

DefaultConfig is the default configuration for running a mode.

Directories

Path Synopsis
export
dotenv
Package dotenv is a Ferrite mode that exports the environment variables to a file suitable use as a .env file.
Package dotenv is a Ferrite mode that exports the environment variables to a file suitable use as a .env file.
internal
render
Package render contains utilities for rendering variable values and schema descriptions in a consistent way across various modes.
Package render contains utilities for rendering variable values and schema descriptions in a consistent way across various modes.
usage
markdown
Package markdown is a Ferrite mode that generates usage documentation in markdown format.
Package markdown is a Ferrite mode that generates usage documentation in markdown format.
Package validate is a Ferrite mode that validates environment variable values against a set of specifications and exits the process if any are invalid.
Package validate is a Ferrite mode that validates environment variable values against a set of specifications and exits the process if any are invalid.

Jump to

Keyboard shortcuts

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