cmd

package
v0.0.0-...-a34aaee Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK status = iota
	WARN
	FAIL
	CRITICAL
)

possible check results

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "ptpcheck",
	Short: "Swiss Army Knife for PTP",
}

RootCmd is a main entry point. It's exported so ptpcheck could be easily extended without touching core functionality.

Functions

func ConfigureVerbosity

func ConfigureVerbosity()

ConfigureVerbosity configures log verbosity based on parsed flags. Needs to be called by any subcommand.

func Execute

func Execute()

Execute is the main entry point for CLI interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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