command

package
v0.0.0-...-c105a5c Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ReleaseFailed error = errors.New("Release Failed")

Functions

func Handle

func Handle(c Command, opt *Opt) error

Types

type Command

type Command int
const (
	Release Command = iota
	Init
)

func Parse

func Parse(command string) Command

func (Command) String

func (c Command) String() string

type Opt

type Opt struct {
	Mf  *tmpl.Makefile // Data needed to gen a makefile
	Rel *ReleaseData   // Data needed to make the release
}

type ReleaseData

type ReleaseData struct {
	Semver string // The version we are releasing as
	Path   string // The path to either a binary, or a folder, that we are releasing.
}

func (*ReleaseData) Validate

func (rd *ReleaseData) Validate() error

Jump to

Keyboard shortcuts

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