Code Review
/
src
/
xds
/
xds-cli.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
|
inline
| side by side (parent:
397a603
)
Minor fixes in sdks command output.
author
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Wed, 3 Jan 2018 10:12:14 +0000
(11:12 +0100)
committer
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Wed, 3 Jan 2018 10:12:14 +0000
(11:12 +0100)
cmd-sdks.go
patch
|
blob
|
history
diff --git
a/cmd-sdks.go
b/cmd-sdks.go
index
5f07e99
..
7d257aa
100644
(file)
--- a/
cmd-sdks.go
+++ b/
cmd-sdks.go
@@
-176,7
+176,11
@@
func _displaySdks(sdks []xaapiv1.SDK, verbose bool, all bool, filter string) {
} else {
if first {
} else {
if first {
+ if all {
+ fmt.Fprintf(writer, "List of available SDKs: \n")
+ } else {
fmt.Fprintf(writer, "List of installed SDKs: \n")
fmt.Fprintf(writer, "List of installed SDKs: \n")
+ }
fmt.Fprintf(writer, " ID\tNAME\tSTATUS\tVERSION\tARCH\n")
}
fmt.Fprintf(writer, " %s\t%s\t%s\t%s\t%s\n", s.ID[:8], s.Name, s.Status, s.Version, s.Arch)
fmt.Fprintf(writer, " ID\tNAME\tSTATUS\tVERSION\tARCH\n")
}
fmt.Fprintf(writer, " %s\t%s\t%s\t%s\t%s\n", s.ID[:8], s.Name, s.Status, s.Version, s.Arch)
@@
-247,7
+251,8
@@
func sdksInstall(ctx *cli.Context) error {
return cli.NewExitError(err, 1)
}
Log.Debugf("Result of %s: %v", url, newSdk)
return cli.NewExitError(err, 1)
}
Log.Debugf("Result of %s: %v", url, newSdk)
- fmt.Printf("Installating of '%s' SDK (id %v) successfully started.\n", newSdk.Name, newSdk.ID)
+ fmt.Printf("Installation of '%s' SDK (id %v) successfully started.\n", newSdk.Name, newSdk.ID)
+
// Wait exit
select {
// Wait exit
select {