cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package cmd defines commands of the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Changelog added in v0.2.0

type Changelog struct {
	From    string        `long:"from" env:"FROM" description:"sha to start release notes from" required:"true"`
	To      string        `long:"to" env:"TO" description:"sha to end release notes to" required:"true"`
	Timeout time.Duration `long:"timeout" env:"TIMEOUT" description:"timeout for assembling the release" default:"5m"`
	flg.ServiceGroup
}

Changelog builds the release-notes from the specified template ands sends it to the desired destinations (telegram, stdout (for CI), etc.).

func (Changelog) Execute added in v0.2.0

func (r Changelog) Execute(_ []string) error

Execute the release-notes command.

type Preview added in v0.6.0

type Preview struct {
	DataFile     string            `long:"data-file" env:"DATA_FILE" description:"path to the file with release data" required:"true"`
	Extras       map[string]string `` /* 152-byte string literal not displayed */
	ConfLocation string            `long:"conf_location" env:"CONF_LOCATION" description:"location to the config file" required:"true"`
}

Preview command prints the release notes to stdout.

func (Preview) Execute added in v0.6.0

func (p Preview) Execute(_ []string) error

Execute prints the release notes to stdout.

type ReleaseNotes

type ReleaseNotes struct {
	Tag     string        `long:"tag" env:"TAG" description:"tag to be released" required:"true"`
	Timeout time.Duration `long:"timeout" env:"TIMEOUT" description:"timeout for assembling the release" default:"5m"`
	flg.ServiceGroup
}

ReleaseNotes builds the release-notes from the specified template ands sends it to the desired destinations (telegram, stdout (for CI), etc.).

func (ReleaseNotes) Execute

func (r ReleaseNotes) Execute(_ []string) error

Execute the release-notes command.

Directories

Path Synopsis
Package flg defines flags, common for all commands.
Package flg defines flags, common for all commands.

Jump to

Keyboard shortcuts

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