cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeStamp = "TIMESTAMP"
	OS        = "OS"
	ARCH      = "ARCH"
)

Variables

This section is empty.

Functions

func Run

func Run() error

Types

type App

type App struct {
	Merge *MergeCmd `arg:"subcommand:merge" help:"combines a template with one or more env files"`
	Marks *MarksCmd `arg:"subcommand:marks" help:"shows all placeholders defined in the specified template"`
	Vars  *VarsCmd  `arg:"subcommand:vars" help:"shows all built-in (and eventually user defined) variables"`
}

func (App) Description

func (App) Description() string

type MarksCmd

type MarksCmd struct {
	Template string `arg:"positional,required" placeholder:"TEMPLATE"`
}

func (*MarksCmd) Run

func (c *MarksCmd) Run() error

type MergeCmd

type MergeCmd struct {
	Template string   `arg:"positional,required" placeholder:"TEMPLATE"`
	EnvFiles []string `arg:"positional" placeholder:"ENV_FILE"`
}

func (*MergeCmd) Run

func (c *MergeCmd) Run() error

type VarsCmd

type VarsCmd struct {
	EnvFiles []string `arg:"positional" placeholder:"ENV_FILE"`
}

func (*VarsCmd) Run

func (c *VarsCmd) Run() error

Jump to

Keyboard shortcuts

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