args

package
v0.0.0-...-e864152 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() (db.DB, string, error)

GetDB returns the database of the user's selection

func Valid

func Valid(cmd *cobra.Command, args []string) error

Valid is always valid

func ValidBuildingID

func ValidBuildingID(cmd *cobra.Command, args []string) error

ValidBuildingID checks if the argument is a valid building id

func ValidDeviceID

func ValidDeviceID(cmd *cobra.Command, args []string) error

ValidDeviceID checks if the argument is a valid device id

func ValidID

func ValidID(cmd *cobra.Command, args []string) error

ValidID checks if the argument is a valid device/room/building ID

func ValidRoomID

func ValidRoomID(cmd *cobra.Command, args []string) error

ValidRoomID checks if the argument is a valid room id

Types

This section is empty.

Jump to

Keyboard shortcuts

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