Skip to content

Commit

Permalink
Changes regarding #49 (review)
Browse files Browse the repository at this point in the history
- Lowercase server in cmd/server.go
- Lowercase storage in cmd/stroage.go
- Remove comment in storage_test.go
  • Loading branch information
c0deN authored and bkircher committed Jul 10, 2020
1 parent 9afe93d commit 8e63802
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func initServerCmd() {
var removeCmd = &cobra.Command{
Use: "rm [flags] [ID]",
Aliases: []string{"remove"},
Short: "Remove Server",
Long: `Remove an existing Server.`,
Short: "Remove server",
Long: `Remove an existing server.`,
Args: cobra.ExactArgs(1),
Run: produceServerCmdRunFunc(client, serverDeleteAction),
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ func initStorageCmd() {
var removeCmd = &cobra.Command{
Use: "rm [flags] [ID]",
Aliases: []string{"remove"},
Short: "Remove Storage",
Long: `Remove an existing Storage.`,
Short: "Remove storage",
Long: `Remove an existing storage.`,
Args: cobra.ExactArgs(1),
Run: produceStorageCmdRunFunc(client, storageDeleteAction),
}
Expand Down
2 changes: 0 additions & 2 deletions cmd/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ func Test_StorageCmdOutput(t *testing.T) {
// close the write side of the pipe so that we can start reading from
// the read side of the pipe
w.Close()
// Read the standard output's result from the read side of the pipe
out, _ := ioutil.ReadAll(r)
assert.Equal(t, test.expectedOutput, string(out))
}
Expand All @@ -118,7 +117,6 @@ func Test_StorageCmdDeleteOutput(t *testing.T) {
// close the write side of the pipe so that we can start reading from
// the read side of the pipe
w.Close()
// Read the standard output's result from the read side of the pipe
out, _ := ioutil.ReadAll(r)
assert.Equal(t, err.expectedOutput, string(out))
}

0 comments on commit 8e63802

Please sign in to comment.