file

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FileName is the file that will be read for the base version and last
	// commit.
	FileName string = "VERSION"

	// Cmd is the file command for the CLI.
	Cmd = &cobra.Command{
		Use:   "file",
		Short: "determine the base version from a file",
		Long:  "Determine the base version from a file and compute the patch level from the number of commits since that file was modified.",
		RunE: func(command *cobra.Command, args []string) (err error) {
			err = root.Repo(&version.File{
				RepoPath: root.RepoPath,
				FileName: FileName,
			})

			return
		},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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