cmd

package
v0.0.0-...-b0fe11f Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 21 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:   "ntpcheck",
	Short: "Swiss Army Knife for NTP",
}

RootCmd is a main entry point. It's exported so ntpcheck 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