Skip to content

Commit

Permalink
Spelling and grammar fixes (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
scop authored Feb 9, 2020
1 parent 9dd0953 commit 0f082b0
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions client/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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")

Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion cmd/addons_changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.`,
Expand Down
2 changes: 1 addition & 1 deletion cmd/addons_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
`,
Expand Down
4 changes: 2 additions & 2 deletions cmd/addons_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/addons_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion cmd/addons_uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
`,
Expand Down
2 changes: 1 addition & 1 deletion cmd/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down
4 changes: 2 additions & 2 deletions cmd/os_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -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: `
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/snapshots_restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f082b0

Please sign in to comment.