task

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultMethod is the default request method
	DefaultMethod = "GET"
	// DefaultStatus is the default expected response status
	DefaultStatus = 200
)
View Source
const (
	// FileMode is default file mode
	FileMode = 0644
	// DirFileMode is default file mode for directories
	DirFileMode = 0755
)
View Source
const (
	// DefaultRepository is default repository location
	DefaultRepository = "http://central.maven.org/maven2"
)

Variables

View Source
var Colors = map[string]color.Attribute{
	"black":   color.FgBlack,
	"red":     color.FgRed,
	"green":   color.FgGreen,
	"yellow":  color.FgYellow,
	"blue":    color.FgBlue,
	"magenta": color.FgMagenta,
	"cyan":    color.FgCyan,
	"white":   color.FgWhite,
}

Colors is the color mapping

View Source
var LocalRepository = util.ExpandUserHome("~/.java/repository")

LocalRepository is default location for local repository

Functions

func LoadEnv

func LoadEnv(filename string) error

LoadEnv loads environment in given file

func RemoveStep

func RemoveStep(message string) string

RemoveStep remove first part of an error message that include step: - message: error message (such as "in step 1: message") Return: error message without step (such as "message")

func SanitizeName

func SanitizeName(filename string) string

SanitizeName cleans a path for archive: - filename: the path to sanitize. Return: sanitized path

Types

This section is empty.

Jump to

Keyboard shortcuts

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