versioncmd

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Print the current version of scf",
	Long:  "Print the current version of scf",
	Run: func(cmd *cobra.Command, args []string) {
		version, err := versioninfo.GetVersion()
		utils.CheckError(err)
		fmt.Printf("Scf Version: %s\n", version)
		err = versioninfo.PrintAvailableUpdate()
		utils.CheckError(err)
	},
}

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