commands

package
v0.0.0-...-e841338 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SemverBumpCommand = &cobra.Command{
	Use:   "semver-bump",
	Short: "Semantic Versioning Bumper",
	Long:  `A semantic versioning file bumper built by giantswarm`,
	Run: func(cmd *cobra.Command, args []string) {
		sb, err := getSemverBumper()

		if err != nil {
			log.Fatal(err)
		}

		currentVersion, err := sb.GetCurrentVersion()

		if err != nil {
			log.Fatal(err)
		}

		fmt.Printf("Current version is: %s\n", currentVersion)
	},
}

Functions

func AddCommands

func AddCommands()

func AddGlobalFlags

func AddGlobalFlags()

func Execute

func Execute(v string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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