env

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: 5 Imported by: 0

Documentation

Overview

Package env implements the env dump subcommand for godyl. It displays information about the environment variables.

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 for the env dump subcommand.

Types

type Command

type Command struct {
	// Command is the env 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 env dump command with its associated configuration.

func NewEnvCommand

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

NewEnvCommand creates a Command for displaying environment information.

func (*Command) Flags

func (cmd *Command) Flags()

Flags adds env-specific flags to the command.

Jump to

Keyboard shortcuts

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