commonlib

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// Name of the binary using this command.
	BinName string
	// Target version to upgrade to.
	NewVersion semver.Version
	// Hook ran before command. Errors are logged and abort the execution.
	PreHook func(fsdir.T) error
	// Hook ran after command. Errors are logged and abort the execution.
	PostHook func(fsdir.T) error
}

Context used by some commonsub commands for customization.

Jump to

Keyboard shortcuts

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