cmd

package
v0.0.0-...-9b07614 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

cmd package implements all the commands for tbprovisioner.

Index

Constants

View Source
const (
	// for command flags const long and strings.
	// LongIndex means the full name of index
	LongIndex = "index"
	// ShortIndex means the shorthand of index
	ShortIndex = "i"
	// LongFile means the full name of file
	LongFile = "file"
	// ShortFile means the shorthand of file
	ShortFile = "f"
	// ConstFile means PEM format file
	ConstFile = "the file to read content from, PEM format"
	// LongType means the full name of type
	LongType = "type"
	// ShortType means the shorthand of type
	ShortType = "t"
	// ConstType is used to prompt DER, PEM and STR information
	ConstType = `` /* 203-byte string literal not displayed */

	// LongLength means length
	LongLength = "len"
	// ShortLength means the shorthand of length
	ShortLength = "l"
	// LongSimulator means the full name of simulator
	LongSimulator = "simulator"
	// ShortSimulator means the shorthand of simulator
	ShortSimulator = "s"
	// ConstSimulator is used to prompt simulator information
	ConstSimulator = "use the simulator to test (DEFAULT: false)"
	// ConstExample is used to show an example
	ConstExample = `` /* 550-byte string literal not displayed */

	// for input parameter const strings.
	// ConstNVRAM means the string NVRAM const
	ConstNVRAM = "NVRAM"
	// ConstPCR means the string PCR const
	ConstPCR = "PCR"
	// ConstPEM means the string PEM const
	ConstPEM = "PEM"
	// ConstDER means the string DER const
	ConstDER = "DER"
	// ConstSTR means the string STR const
	ConstSTR = "STR"
)

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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