cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cmd contains all the Cobra CLI wrappers for the command line parsing and execution.

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName         = "Timeconverter - A time conversion utility"
	AppMajorVersion = "0"
	AppMinorVersion = "1"
	AppPatchVersion = "2"

	// For any pre-release version, if would need to provide leading ".", like ".dev01"
	AppPreReleaseVer  = ""
	AppVersion        = AppMajorVersion + "." + AppMinorVersion + "." + AppPatchVersion + AppPreReleaseVer
	AppShortBuildTime = "[sbt]"
	AppLongBuildTime  = "[lbt]"
	AppLicense        = "MIT License - Hoby Smith - hoby@thoughtrealm.com"
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetRootCmd

func GetRootCmd() *cobra.Command

Types

This section is empty.

Jump to

Keyboard shortcuts

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