cmd

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ApplyCommandDescription = "takes YAML file, generated with collect command and edited with new releases info and performs new releases if it's required"
View Source
const (
	CollectCommandDescription = "pulls info about all latest releases of drivers and all commits since those releases and dumps this info to a YAML file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyCommand

type ApplyCommand struct {
	cmd.Command

	DryRun        bool   `long:"dry-run" description:"performs extra debug info instead of the real action"`
	File          string `long:"file" short:"f" env:"FILE" default:"drivers-releases.yml" description:"path to file with configuration"`
	ReleaseBranch string `long:"release-branch" env:"RELEASE_BRANCH" default:"master" description:"branch to release"`
}

func (*ApplyCommand) Execute

func (c *ApplyCommand) Execute(args []string) error

type CollectCommand

type CollectCommand struct {
	cmd.Command

	DryRun bool   `long:"dry-run" description:"performs extra debug info instead of the real action"`
	File   string `long:"file" short:"f" env:"FILE" default:"drivers-releases.yml" description:"path to file with configuration"`
}

func (*CollectCommand) Execute

func (c *CollectCommand) Execute(args []string) error

type DriversReleases

type DriversReleases map[string]Release

DriversReleases represents map with - key: language - value: Release object

type Release

type Release struct {
	// Tag corresponds to release tag in format v0.0.1
	Tag string `yaml:"tag"`
	// Description represents concatenated descriptions of commits
	Description string `yaml:"description"`
}

Release represents an object with the latest tag + concatenated descriptions of commits, performed after release

Jump to

Keyboard shortcuts

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