mirror of
https://github.com/psviderski/uncloud.git
synced 2026-11-10 20:54:17 +00:00
Compare commits
1
Commits
image-rm
...
5d640b9a57
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d640b9a57 |
+1
-10
@@ -22,15 +22,6 @@ func NewShowCommand() *cobra.Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func show(uncli *cli.CLI) error {
|
func show(uncli *cli.CLI) error {
|
||||||
// discard errors, only show the current context, otherwise nothing
|
fmt.Println(uncli.ContextOverrideOrCurrent())
|
||||||
if uncli.Config == nil {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
if len(uncli.Config.Contexts) == 0 {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
fmt.Println(uncli.Config.CurrentContext)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user