shellfmt

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BashFormat       = "bash"
	BatchFormat      = "batch"
	PowershellFormat = "powershell"
)

Output formats.

Variables

This section is empty.

Functions

func DefaultFormat

func DefaultFormat() string

Types

type EnvFormatter

type EnvFormatter interface {
	Set(name, val string) string
	Prepend(name, val string) string
	Append(name, val string) string
}

func GetEnvFormatter

func GetEnvFormatter(format string) (EnvFormatter, error)

type Fmt

type Fmt struct {
	// contains filtered or unexported fields
}

func New

func New(format string) (*Fmt, error)

func (*Fmt) Append

func (f *Fmt) Append(name, val string)

func (*Fmt) Prepend

func (f *Fmt) Prepend(name, val string)

func (*Fmt) Set

func (f *Fmt) Set(name, val string)

Jump to

Keyboard shortcuts

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