diff --git a/client/client.go b/client/client.go index b23eee3c..08d9c806 100644 --- a/client/client.go +++ b/client/client.go @@ -8,7 +8,7 @@ import ( resty "github.com/go-resty/resty/v2" ) -// RawJSON controles if the client does json handling or outputs it raw +// RawJSON controls if the client does json handling or outputs it raw var RawJSON = false func genericJSONMethod(get bool, base, section, command string, body map[string]interface{}) (*resty.Response, error) { diff --git a/client/helper.go b/client/helper.go index 66041cd3..93236c46 100644 --- a/client/helper.go +++ b/client/helper.go @@ -24,7 +24,7 @@ type Response struct { Data map[string]interface{} `json:"data,omitempty"` } -// URLHelper returns a URL build from the arguments +// URLHelper returns a URL built from the arguments func URLHelper(base, section, command string) (string, error) { log.WithFields(log.Fields{ "base": base, @@ -72,7 +72,7 @@ func GetJSONRequest() *resty.Request { return request } -// GetRequest returns a resty.Request object prepared for a API call +// GetRequest returns a resty.Request object prepared for an API call func GetRequest() *resty.Request { apiToken := viper.GetString("api-token") @@ -85,7 +85,7 @@ func GetRequest() *resty.Request { "statuscode": resp.StatusCode(), "status": resp.Status(), "time": resp.Time(), - "recieved-at": resp.ReceivedAt(), + "received-at": resp.ReceivedAt(), "headers": resp.Header(), "request": resp.Request.RawRequest, "body": resp, diff --git a/cmd/addons_changelog.go b/cmd/addons_changelog.go index 73c02035..2a5c55d1 100644 --- a/cmd/addons_changelog.go +++ b/cmd/addons_changelog.go @@ -13,7 +13,7 @@ import ( var addonsChangelogCmd = &cobra.Command{ Use: "changelog [slug]", Aliases: []string{"cl", "ch"}, - Short: "Show changelog of an Home Assistant add-on", + Short: "Show changelog of a Home Assistant add-on", Long: ` This command shows the changelog of an add-on. It gives you what has been changed in the latest version and tell you about possible breaking changes.`, diff --git a/cmd/addons_install.go b/cmd/addons_install.go index 78efa13f..fd15f083 100644 --- a/cmd/addons_install.go +++ b/cmd/addons_install.go @@ -15,7 +15,7 @@ import ( var addonsInstalCmd = &cobra.Command{ Use: "install [slug]", Aliases: []string{"i", "inst"}, - Short: "Installs an Home Assistant add-on", + Short: "Installs a Home Assistant add-on", Long: ` This command allows you to install a Home Assistant add-on from the commandline. `, diff --git a/cmd/addons_restart.go b/cmd/addons_restart.go index 7474f06f..5d10fe7e 100644 --- a/cmd/addons_restart.go +++ b/cmd/addons_restart.go @@ -16,9 +16,9 @@ var addonsRestartCmd = &cobra.Command{ Use: "restart [slug]", Args: cobra.ExactArgs(1), Aliases: []string{"reboot"}, - Short: "Restarts an Home Assistant add-on", + Short: "Restarts a Home Assistant add-on", Long: ` -Restart an Home Assistant add-on +Restart a Home Assistant add-on `, Example: ` ha addons restart core_ssh diff --git a/cmd/addons_stats.go b/cmd/addons_stats.go index 351071e8..9b311d6c 100644 --- a/cmd/addons_stats.go +++ b/cmd/addons_stats.go @@ -15,7 +15,7 @@ import ( var addonsStatsCmd = &cobra.Command{ Use: "stats [slug]", Aliases: []string{"status", "stat"}, - Short: "Provides system usage stats of an Home Assistant add-on", + Short: "Provides system usage stats of a Home Assistant add-on", Long: ` Provides insight into the system usage stats of an add-on. It shows you how much CPU, memory, disk & network resources it uses. diff --git a/cmd/addons_uninstall.go b/cmd/addons_uninstall.go index 0a9ea7c2..8952f7ab 100644 --- a/cmd/addons_uninstall.go +++ b/cmd/addons_uninstall.go @@ -16,7 +16,7 @@ var addonsUninstallCmd = &cobra.Command{ Use: "uninstall [slug]", Args: cobra.ExactArgs(1), Aliases: []string{"remove", "delete", "del", "rem", "un", "uninst"}, - Short: "Uninstalls an Home Assistant add-on", + Short: "Uninstalls a Home Assistant add-on", Long: ` This command allows you to uninstall a Home Assistant add-on. `, diff --git a/cmd/os.go b/cmd/os.go index eb64d3de..1043c249 100644 --- a/cmd/os.go +++ b/cmd/os.go @@ -15,7 +15,7 @@ This command set is specifically designed for the Home Assistant Operating Syste and only works on those systems. It provides an interface to get information about your Home Assistant Operating System, but also provides command to upgrade the operating system and the operating system CLI. Finally, -it provides a command to import configurations from an USB-stick.`, +it provides a command to import configurations from a USB stick.`, Example: ` ha os info ha os update`, diff --git a/cmd/os_import.go b/cmd/os_import.go index ea68239f..66d391bb 100644 --- a/cmd/os_import.go +++ b/cmd/os_import.go @@ -12,9 +12,9 @@ import ( var osImportCmd = &cobra.Command{ Use: "import", Aliases: []string{"im", "sync", "load"}, - Short: "Import configurations from an USB-stick", + Short: "Import configurations from a USB stick", Long: ` -This commands triggers an import action from a connected USB-stick with +This commands triggers an import action from a connected USB stick with configuration to load for the Home Assistant Operating System. `, Example: ` diff --git a/cmd/root.go b/cmd/root.go index f113a429..ae707c14 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -22,7 +22,7 @@ var apiToken string var rawJSON bool var noProgress bool -// ExitWithError is a hint for the called that we want an non-zero exit code +// ExitWithError is a hint for the called that we want a non-zero exit code var ExitWithError = false // ProgressSpinner is a general spinner that can be used across the CLI diff --git a/cmd/snapshots_restore.go b/cmd/snapshots_restore.go index dec3509c..644ae88d 100644 --- a/cmd/snapshots_restore.go +++ b/cmd/snapshots_restore.go @@ -16,7 +16,7 @@ var snapshotsRestoreCmd = &cobra.Command{ Use: "restore [slug]", Short: "Restores a Home Assistant snapshot backup", Long: ` -When something goes wrong, this command allows you to restore an previously +When something goes wrong, this command allows you to restore a previously take Home Assistant snapshot backup on your system.`, Example: ` ha snapshots restore c1a07617