cmd

package
v0.0.0-...-3ac216a Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package cmd contains the command-line interface (CLI) for the download-asset binary.

Index

Constants

This section is empty.

Variables

View Source
var (

	// Version represents the version of the software.
	Version = "dev"

	// Commit represents the git commit hash of the software.
	Commit = vcs("vcs.revision", "unknown")

	// BuildDate represents the date the software was built.
	BuildDate = vcs("vcs.time", "unknown")

	// Dirty represents whether or not the git repo was dirty when the software was built.
	Dirty = vcs("vcs.modified", "unknown")

	// PGOEnabled represents whether or not the build leveraged Profile-Guided Optimization (PGO).
	PGOEnabled = vcs("-pgo", "false")
)

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 LongHelpText

func LongHelpText(text string) string

Types

type PatternMatches

type PatternMatches struct {
	Ver  string
	OS   string
	Arch string
	Ext  string
}

Jump to

Keyboard shortcuts

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