configuration

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package configuration implements the config dump subcommand for godyl. It displays the application's current configuration settings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(cfg *config.Config) *cobra.Command

NewCommand creates a cobra.Command instance for the config dump subcommand.

Types

type Command

type Command struct {
	// Command is the config cobra.Command instance
	Command *cobra.Command
	// Config contains application configuration
	Config *config.Config
}

Command encapsulates the config dump command with its associated configuration.

func NewConfigCommand

func NewConfigCommand(cfg *config.Config) *Command

NewConfigCommand creates a Command for displaying application configuration.

func (*Command) Flags

func (cmd *Command) Flags()

Flags adds config-specific flags to the command.

Jump to

Keyboard shortcuts

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