env

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:        "env",
	Usage:       "Manage environment variables",
	Description: "Command for working with the environment files defined in app.json",
	Commands: []*cli.Command{
		ScaffoldCmd,
		SyncCmd,
	},
}

Command defines the env commands for interacting and generating env file artifacts.

View Source
var ScaffoldCmd = &cli.Command{
	Name:   "scaffold",
	Usage:  "Generate empty env files for every app.",
	Action: cmdtools.Wrap(Scaffold),
}
View Source
var SyncCmd = &cli.Command{
	Name:        "sync",
	Usage:       "Sync secrets to env files from app.json",
	Description: "Reads app.json and adds creates or updates .env files in the relevant app directories",
	Action:      cmdtools.Wrap(Sync),
}

Functions

func Scaffold

func Scaffold(_ context.Context, input cmdtools.CommandInput) error

Scaffold generates the blank .env files located for every app defined in the definition. Prepends the WebKit notice.

func Sync

func Sync(ctx context.Context, input cmdtools.CommandInput) error

Sync

Types

This section is empty.

Jump to

Keyboard shortcuts

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