Skip to content

Commit 1239aff

Browse files
authored
fix: remove typos (#338)
1 parent f48ac80 commit 1239aff

19 files changed

Lines changed: 34 additions & 34 deletions

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ In addition, `kubernetes create` will now, by default, block all access to the c
274274
275275
### Fixed
276276
- Fix commands in `server delete` usage examples.
277-
- Tune human output so that normal output is directed to `stdout`. Progess and error messages are still outputted to `stderr`.
277+
- Tune human output so that normal output is directed to `stdout`. Progress and error messages are still outputted to `stderr`.
278278
279279
## [2.1.0] - 2022-09-07
280280
### Added
@@ -356,7 +356,7 @@ In addition, `kubernetes create` will now, by default, block all access to the c
356356
357357
### Fixed
358358
- Improved errors relating to argument resolver failures
359-
- Print version info, instead of missing credentials error, when runnning `upctl version` without credentials
359+
- Print version info, instead of missing credentials error, when running `upctl version` without credentials
360360
- Disable colors when outputting in JSON or YAML format
361361
- Display both public and private addresses in `server create` output
362362
- Render livelog messages of commands which execution takes less than render tick interval
@@ -403,7 +403,7 @@ First non-beta release! Includes all previous changes and fixes.
403403
404404
### Fixes
405405
- fix(pre-commit): add missing golangci config file
406-
- fix(root): use default cobra behavious when called
406+
- fix(root): use default cobra behaviour when called
407407
408408
## [0.5.0] - 2021-04-14
409409
Initial public beta release :tada:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Exit code communicates success or the type and number of failures. Possible exit
3131
Exit code | Description
3232
--------- | -----------
3333
0 | Command(s) executed successfully.
34-
1 - 99 | Number of failed executions. For example, if stopping four servers and API returs error for one of the request, exit code will be 1.
34+
1 - 99 | Number of failed executions. For example, if stopping four servers and API returns error for one of the request, exit code will be 1.
3535
100 - | Other, non-execution related, errors. For example, required flag missing.
3636

3737
## Examples
@@ -101,7 +101,7 @@ cd upcloud-cli
101101
pre-commit install
102102
```
103103

104-
Make the changes with your favorite editor. Once you're done, create a new branch and push it back to Github.
104+
Make the changes with your favorite editor. Once you're done, create a new branch and push it back to GitHub.
105105
```bash
106106
git checkout -b <branch-name>
107107
<add your changes, "git status" helps>

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ to control your resources from the command line or any compatible interface.
55

66
## Install upctl
77

8-
`upctl` can be installed from a pre-built package in the repositorys [GitHub releases](https://github.com/UpCloudLtd/upcloud-cli/releases) using a package manager or from sources with `go install`:
8+
`upctl` can be installed from a pre-built package in the repositories [GitHub releases](https://github.com/UpCloudLtd/upcloud-cli/releases) using a package manager or from sources with `go install`:
99

1010
=== "Linux"
1111

internal/commands/ipaddress/assign.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (s *assignCommand) InitCommand() {
5151
fs.StringVar(&s.family, "family", defaultFamily, "The address family of new IP address.")
5252
fs.StringVar(&s.serverUUID, "server", "", "The server the ip address is assigned to.")
5353
fs.StringVar(&s.mac, "mac", "", "MAC address of server interface to assign address to. Required for detached floating IP address if zone is not specified.")
54-
fs.StringVar(&s.zone, "zone", "", (namedargs.ZoneDescription("IP address") + " Required when creating a detached floating IP address, i.e. when MAC address is not speficied."))
54+
fs.StringVar(&s.zone, "zone", "", (namedargs.ZoneDescription("IP address") + " Required when creating a detached floating IP address, i.e. when MAC address is not specified."))
5555
config.AddToggleFlag(fs, &s.floating, "floating", false, "Whether the address to be assigned is a floating one.")
5656
s.AddFlags(fs)
5757
}

internal/commands/kubernetes/config_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func TestConfigCommand(t *testing.T) {
6464
args: []string{
6565
exampleUUID(),
6666
},
67-
expectedOutput: string(yamlToJSON(exampleKuberenetesKubeconfig("json-output"))),
67+
expectedOutput: string(yamlToJSON(exampleKubernetesKubeconfig("json-output"))),
6868
},
6969
{
7070
name: "yaml-output",
@@ -129,7 +129,7 @@ Flags:
129129
exampleFilename(dir, "write-to-empty-file"),
130130
},
131131
expectedOutput: ``,
132-
expectedFileContents: exampleKuberenetesKubeconfig("write-to-empty-file"),
132+
expectedFileContents: exampleKubernetesKubeconfig("write-to-empty-file"),
133133
},
134134
{
135135
name: "write-to-non-empty-file",
@@ -139,9 +139,9 @@ Flags:
139139
"--write",
140140
exampleFilename(dir, "write-to-non-empty-file"),
141141
},
142-
existingFileContents: exampleKuberenetesKubeconfig("previous-config"),
142+
existingFileContents: exampleKubernetesKubeconfig("previous-config"),
143143
expectedOutput: ``,
144-
expectedFileContents: exampleKuberenetesKubeconfig("previous-config", "write-to-non-empty-file"),
144+
expectedFileContents: exampleKubernetesKubeconfig("previous-config", "write-to-non-empty-file"),
145145
},
146146
{
147147
name: "write-to-non-empty-file-with-override",
@@ -151,9 +151,9 @@ Flags:
151151
"--write",
152152
exampleFilename(dir, "write-to-non-empty-file-with-override"),
153153
},
154-
existingFileContents: exampleKuberenetesKubeconfig("write-to-non-empty-file-with-override"),
154+
existingFileContents: exampleKubernetesKubeconfig("write-to-non-empty-file-with-override"),
155155
expectedOutput: ``,
156-
expectedFileContents: exampleKuberenetesKubeconfig("write-to-non-empty-file-with-override"),
156+
expectedFileContents: exampleKubernetesKubeconfig("write-to-non-empty-file-with-override"),
157157
},
158158
} {
159159
tt := tt
@@ -164,7 +164,7 @@ Flags:
164164
Return([]upcloud.KubernetesCluster{exampleKubernetesCluster(tt.name)}, nil)
165165

166166
mService.On("GetKubernetesKubeconfig", exampleGetKubernetesKubeconfigRequest()).
167-
Return(string(exampleKuberenetesKubeconfig(tt.name)), nil)
167+
Return(string(exampleKubernetesKubeconfig(tt.name)), nil)
168168

169169
filename := exampleFilename(dir, tt.name)
170170
file, err := os.Create(filename)
@@ -222,7 +222,7 @@ func exampleGetKubernetesKubeconfigRequest() *request.GetKubernetesKubeconfigReq
222222
return &request.GetKubernetesKubeconfigRequest{UUID: exampleUUID()}
223223
}
224224

225-
func exampleKuberenetesKubeconfig(names ...string) []byte {
225+
func exampleKubernetesKubeconfig(names ...string) []byte {
226226
apiConfig := api.NewConfig()
227227
for _, v := range names {
228228
apiConfig.Clusters[v] = &api.Cluster{

internal/commands/kubernetes/modify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func ModifyCommand() commands.Command {
2020
return &modifyCommand{
2121
BaseCommand: commands.New(
2222
"modify",
23-
"Modifiy an existing cluster",
23+
"Modify an existing cluster",
2424
"upctl cluster modify 00bb4617-c592-4b32-b869-35a60b323b18 --plan 1xCPU-1GB",
2525
),
2626
}

internal/commands/server/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func formatCreateIPAddresses(val interface{}) (text.Colors, string, error) {
406406
// Store addresses in map keys to avoid duplicate addresses
407407
addresses := make(map[string]bool)
408408

409-
// Get public addressses from ip_addresses list
409+
// Get public addresses from ip_addresses list
410410
// Public and utility interfaces created by default (no --network parameters) are only listed here
411411
for _, ipa := range server.IPAddresses {
412412
addresses[ipa.Address] = true

internal/commands/storage/modify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func (s *modifyCommand) InitCommand() {
6767
flagSet.StringVar(&s.params.backupTime, "backup-time", s.params.backupTime, "The time when to create a backup in HH:MM. Empty value means no backups.")
6868
flagSet.StringVar(&s.params.backupInterval, "backup-interval", "", "The interval of the backup.\nAvailable: daily, mon, tue, wed, thu, fri, sat, sun")
6969
flagSet.IntVar(&s.params.backupRetention, "backup-retention", 0, "How long to store the backups in days. The accepted range is 1-1095.")
70-
config.AddEnableOrDisableFlag(flagSet, &s.autoresizePartitionFilesystem, false, "filesystem-autoresize", "automatic resize of partition and filesystem when modifying storage size. Note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept. Taking and keeping backups incure costs.")
70+
config.AddEnableOrDisableFlag(flagSet, &s.autoresizePartitionFilesystem, false, "filesystem-autoresize", "automatic resize of partition and filesystem when modifying storage size. Note that before the resize attempt is made, backup of the storage will be taken. If the resize attempt fails, the backup will be used to restore the storage and then deleted. If the resize attempt succeeds, backup will be kept. Taking and keeping backups incur costs.")
7171

7272
s.AddFlags(flagSet)
7373
}

internal/completion/ipaddress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/spf13/cobra"
99
)
1010

11-
// IPAddress implements argument completion for ip addresses, by ptr record or the adddress itself
11+
// IPAddress implements argument completion for ip addresses, by ptr record or the address itself
1212
type IPAddress struct{}
1313

1414
// make sure IPAddress implements the interface

internal/resolver/database_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestDatabaseResolution(t *testing.T) {
6060
assert.NoError(t, err)
6161
var resolved string
6262

63-
// Ambigous title
63+
// Ambiguous title
6464
resolved, err = argResolver("asd")
6565
if !assert.Error(t, err) {
6666
t.FailNow()

0 commit comments

Comments
 (0)