soft

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Code generated by Soft build; DO NOT EDIT.

Index

Constants

View Source
const (
	Base    = "Base"
	Alpha   = "Alpha"   //初级版本 内测版。
	Beta    = "Beta"    //公测版
	RC      = "RC"      //Release Candidate 候选版本
	Release = "Release" //最终版本
	Free    = "Free"    //免费版。
	Full    = "Full"    //完全版。
)

Variables

This section is empty.

Functions

func Md5FileStr

func Md5FileStr() (string, error)

Types

type Command

type Command struct {
	App  *kingpin.Application
	Soft Soft
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand() *Command

func (*Command) BeforeParseCallback

func (c *Command) BeforeParseCallback(callback func()) *Command

func (*Command) Parse

func (c *Command) Parse()

func (*Command) RunCallback

func (c *Command) RunCallback(callback func()) *Command

type Soft

type Soft struct {
	Name      string    `json:"name"`
	Alias     string    `json:"alias"`
	Author    string    `json:"author"`
	Version   []Version `json:"versions"`
	Copyright string    `json:"copyright"`
}

func NewSoft

func NewSoft() *Soft

func (*Soft) FullVersion

func (s *Soft) FullVersion() string

func (*Soft) Info

func (s *Soft) Info() string

func (*Soft) JSON

func (s *Soft) JSON() string

func (*Soft) List

func (s *Soft) List() string

func (*Soft) SimpleVersion

func (s *Soft) SimpleVersion() string

type Version

type Version struct {
	Tag       string `json:"tag"`
	Log       string `json:"log"`
	Status    string `json:"status"`
	Hash      string `json:"hash"`
	GitHash   string `json:"git_hash"`
	CreatedAt string `json:"created_at"`
}

Jump to

Keyboard shortcuts

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