Skip to content

Commit

Permalink
Incorporate review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
parauliya committed Jul 9, 2020
1 parent 8a66270 commit 5fc6050
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/tink-cli/cmd/hardware/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/tinkerbell/tink/protos/hardware"
)

// listCmd represents the all command
// listCmd represents the list command
var listCmd = &cobra.Command{
Use: "list",
Short: "list all known hardware",
Expand All @@ -35,7 +35,7 @@ var listCmd = &cobra.Command{
}
}
if err != nil && err != io.EOF {
log.Println(err)
log.Fatal(err)
} else {
t.Render()
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-cli/cmd/hardware/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func printOutput(data bool, hw *hardware.Hardware, input string) {
} else {
hwData, err := json.Marshal(hw)
if err != nil {
log.Println("Failed to marshal hardware data", err)
log.Fatal("Failed to marshal hardware data", err)
} else {
log.Println(string(hwData))
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-cli/cmd/hardware/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var ipCmd = &cobra.Command{

func addIPFlags() {
flags := ipCmd.Flags()
flags.BoolVarP(&data, "details", "d", false, "Provide the complete hardware details in json format")
flags.BoolVarP(&data, "details", "d", false, "provide the complete hardware details in json format")
}

func init() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/tink-cli/cmd/hardware/mac.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var macCmd = &cobra.Command{

func addMacFlags() {
flags := macCmd.Flags()
flags.BoolVarP(&data, "details", "d", false, "Provide the complete hardware details in json format")
flags.BoolVarP(&data, "details", "d", false, "provide the complete hardware details in json format")
}

func init() {
Expand Down

0 comments on commit 5fc6050

Please sign in to comment.