cmd

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package cmd commands

Package cmd commands

Index

Constants

This section is empty.

Variables

View Source
var (
	Name    = configName
	Version = "not set"
	Commit  = "snapshot"
	Date    = "undefined"
)

Version, Build Commit and Date are filled in during build by the Makefile noinspection GoUnusedGlobalVariable

View Source
var (

	// RootCmd entry point to start
	RootCmd = &cobra.Command{
		Use:           "hmcli",
		Short:         "hmcli – Homematic Command Line and Icinga compatible Monitoring Tool",
		Long:          `Query Tool and Nagios/Icinga check plugin for Homematic/Raspberrymatic with XMLAPI`,
		SilenceErrors: true,
	}
)

Functions

func Execute

func Execute()

Execute run application

func GetPlugin

func GetPlugin() *nagios.Plugin

GetPlugin returns the nagios plugin for the library

func GetVersion

func GetVersion(doPrint bool) (txt string)

GetVersion extract compiled version info

func NagiosResult

func NagiosResult(status string, output string, longOutput string, perfdata []nagios.PerformanceData) *nagios.Plugin

NagiosResult is a helper function to return a nagios plugin result

func SetPlugin

func SetPlugin(p *nagios.Plugin)

SetPlugin sets the nagios plugin for the library

Types

This section is empty.

Jump to

Keyboard shortcuts

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