{"modulePath":"github.com/mycontroller-org/esphome_api","version":"v1.4.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package root\n\n## Constants\n\n```go\nconst (\n\tENV_PREFIX       = \"ESPHOME\"\n\tCONFIG_FILE_NAME = \".esphomectl\"\n\tCONFIG_FILE_EXT  = \"yaml\"\n\tCONFIG_FILE_ENV  = \"ESPHOMECTL_CONFIG\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tCONFIG *cliTY.Config // keeps device details\n\n\tHideHeader   bool\n\tPretty       bool\n\tOutputFormat string\n)\n```\n\n## Functions\n\n```go\nfunc AddCommand(cmds ...*cobra.Command)\n```\n\n```go\nfunc AddDevice(newDevice *cliTY.DeviceConfig)\n```\n\n```go\nfunc Execute(streams clientTY.IOStreams)\n```\n\n```go\nfunc GetActiveClient(callBackFunc TY.CallBackFunc) (*client.Client, error)\n```\n\n```go\nfunc GetClient(cfg *cliTY.DeviceConfig, callBackFunc TY.CallBackFunc) (*client.Client, error)\n```\n\n```go\nfunc GetDevice(address string) *cliTY.DeviceConfig\n```\n\n```go\nfunc RemoveDevice(address string)\n```\n\n```go\nfunc WriteConfigFile()\n```\n\n","path":"github.com/mycontroller-org/esphome_api/cli/command/root","name":"root","synopsis":"","isRedistributable":true}
