commands

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "v1.1.1"
	BuildTime = tools.Tools.TimeFormat(time.Now(), "Y-m-d H:i:s")
)

Functions

func EnvFile added in v1.0.10

func EnvFile() (string, error)

EnvFile returns the name of the Go environment configuration file.

func GetVersion added in v1.0.10

func GetVersion() string

func Getenv added in v1.0.10

func Getenv(key string) string

Getenv gets the value from env or configuration.

func InitCommands

func InitCommands() []*cli.Command

func RegexpReplace

func RegexpReplace(reg, src, temp string) string

RegexpReplace replace regexp

func RunNew

func RunNew() cli.ActionFunc

Types

type Flags

type Flags struct {
	Name      string
	Path      string
	ModPrefix string
}

func (*Flags) ToRunNew

func (f *Flags) ToRunNew() []cli.Flag

type Tool added in v1.0.10

type Tool struct {
	Name      string    `json:"name"`
	Alias     string    `json:"alias"`
	BuildTime time.Time `json:"build_time"`
	Install   string    `json:"install"`
	Dir       string    `json:"dir"`
	Summary   string    `json:"summary"`
	Platform  []string  `json:"platform"`
	Author    string    `json:"author"`
	URL       string    `json:"url"`
}

Tool is kratos tool.

type VersionOptions added in v1.0.10

type VersionOptions struct {
	Version   string
	BuildTime string
	GoVersion string
	Os        string
	Arch      string
}

VersionOptions include version

Directories

Path Synopsis
You can use the "packr2 clean" command to clean up this, and any other packr generated files.
You can use the "packr2 clean" command to clean up this, and any other packr generated files.

Jump to

Keyboard shortcuts

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