versionCmd

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2016 License: MIT Imports: 7 Imported by: 2

README

version

Print the current project version and exit.

Usage

salsaflow version

Description

Print the version string as stored in the current branch.

Steps

This command goes through the following steps:

  1. Invoke the get_version custom script and print the output.

Documentation

Overview

Print the current project version and exit.

salsaflow version

Description

Print the version string as stored in the current branch.

Steps

This command goes through the following steps:

  1. Invoke the `get_version` custom script and print the output.

Index

Constants

This section is empty.

Variables

View Source
var Command = &gocli.Command{
	UsageLine: "version",
	Short:     "print the current project version",
	Long: `
  Print the project version string as stored in the current branch.

  To check the version of SalsaFlow itself, use -version.

  There are also some subcommands available. Check them out.
	`,
	Action: func(cmd *gocli.Command, args []string) {
		if len(args) != 0 {
			cmd.Usage()
			os.Exit(2)
		}

		ver, err := version.Get()
		if err != nil {
			errs.Fatal(err)
		}

		fmt.Println(ver)
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
Bump the project version string.
Bump the project version string.

Jump to

Keyboard shortcuts

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