app

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package app implements the functionality of tag, the CLI calls exported members of this package.

Index

Constants

This section is empty.

Variables

View Source
var ErrAborted = errors.New("Aborted")

ErrAborted is returned whenever an action is aborted by the user.

Functions

This section is empty.

Types

type App

type App struct {
	Stdout io.Writer
	Stderr io.Writer
	Cfg    config.Config
	// contains filtered or unexported fields
}

App represents the tag program.

func New

func New(cwd string, stdout, stderr io.Writer) (App, error)

New constructs and returns a new App.

func (App) Init

func (a App) Init(cwd string, force bool) error

Init handles the init subcommand.

func (App) Latest

func (a App) Latest() error

Latest handles the latest subcommand.

func (App) List

func (a App) List(limit int) error

List handles the list subcommand.

func (App) Major

func (a App) Major(push, force, dryRun bool) error

Major handles the major subcommand.

func (App) Minor

func (a App) Minor(push, force, dryRun bool) error

Minor handles the minor subcommand.

func (App) Patch

func (a App) Patch(push, force, dryRun bool) error

Patch handles the minor subcommand.

Jump to

Keyboard shortcuts

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