Documentation
¶
Index ¶
- Constants
- Variables
- func AddCommand(cmds ...*cobra.Command)
- func AddDevice(newDevice *cliTY.DeviceConfig)
- func Execute(streams clientTY.IOStreams)
- func GetActiveClient(callBackFunc TY.CallBackFunc) (*client.Client, error)
- func GetClient(cfg *cliTY.DeviceConfig, callBackFunc TY.CallBackFunc) (*client.Client, error)
- func GetDevice(address string) *cliTY.DeviceConfig
- func RemoveDevice(address string)
- func WriteConfigFile()
Constants ¶
View Source
const ( ENV_PREFIX = "ESPHOME" CONFIG_FILE_NAME = ".esphomectl" CONFIG_FILE_EXT = "yaml" CONFIG_FILE_ENV = "ESPHOMECTL_CONFIG" )
Variables ¶
Functions ¶
func AddCommand ¶
func AddDevice ¶
func AddDevice(newDevice *cliTY.DeviceConfig)
func GetActiveClient ¶
func GetActiveClient(callBackFunc TY.CallBackFunc) (*client.Client, error)
func GetClient ¶
func GetClient(cfg *cliTY.DeviceConfig, callBackFunc TY.CallBackFunc) (*client.Client, error)
func GetDevice ¶
func GetDevice(address string) *cliTY.DeviceConfig
func RemoveDevice ¶
func RemoveDevice(address string)
func WriteConfigFile ¶
func WriteConfigFile()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.