dump

package
v0.0.6-beta Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package dump provides command implementations for displaying various configuration and system information.

It includes subcommands for viewing configuration settings, defaults, environment variables, platform information, and tool definitions. Each subcommand formats and displays its specific data according to the user's preferences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(cfg *config.Config, files config.Embedded) *cobra.Command

NewCommand creates a cobra.Command instance containing the dump command and its subcommands.

Types

type Command

type Command struct {
	// Command is the dump cobra.Command instance
	Command *cobra.Command
	// Config contains application configuration
	Config *config.Config
	// Files contains the embedded configuration files and templates
	Files config.Embedded
}

Command encapsulates the dump cobra command with its associated config and embedded files.

func NewDumpCommand

func NewDumpCommand(cfg *config.Config, files config.Embedded) *Command

NewDumpCommand creates a Command for displaying configuration information.

func (*Command) Flags

func (cmd *Command) Flags()

Flags adds dump-specific flags to the command.

func (*Command) Subcommands

func (cmd *Command) Subcommands()

Subcommands adds all subcommands to the dump command.

Directories

Path Synopsis
Package configuration implements the config dump subcommand for godyl.
Package configuration implements the config dump subcommand for godyl.
Package defaults implements the defaults dump subcommand for godyl.
Package defaults implements the defaults dump subcommand for godyl.
Package env implements the env dump subcommand for godyl.
Package env implements the env dump subcommand for godyl.
Package platform implements the platform dump subcommand for godyl.
Package platform implements the platform dump subcommand for godyl.
Package tools implements the tools dump subcommand for godyl.
Package tools implements the tools dump subcommand for godyl.

Jump to

Keyboard shortcuts

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