bug fix issue#64 + updated docs
parent
9176b10d31
commit
a55381e944
|
|
@ -30,6 +30,11 @@ brew tap derailed/k9s && brew install k9s
|
|||
|
||||
- [Releases](https://github.com/derailed/k9s/releases)
|
||||
|
||||
1. Running from source
|
||||
|
||||
- You will need to use go 1.11+
|
||||
- GO111MODULE=on
|
||||
|
||||
<br/>
|
||||
|
||||
---
|
||||
|
|
@ -39,7 +44,7 @@ brew tap derailed/k9s && brew install k9s
|
|||
# List all available CLI options
|
||||
k9s -h
|
||||
# To get info about K9s runtime (logs, configs, etc..)
|
||||
k9s config
|
||||
k9s info
|
||||
# To run K9s in a given namespace
|
||||
k9s -n mybitchns
|
||||
```
|
||||
|
|
|
|||
|
|
@ -45,8 +45,9 @@ func (v *contextView) useContext(*tcell.EventKey) {
|
|||
|
||||
v.app.flash(flashInfo, "Switching context to", ctx)
|
||||
v.refresh()
|
||||
tv := v.GetPrimitive("ctx").(*tableView)
|
||||
tv.table.Select(0, 0)
|
||||
if tv, ok := v.GetPrimitive("ctx").(*tableView); ok {
|
||||
tv.table.Select(0, 0)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *contextView) extraActions(aa keyActions) {
|
||||
|
|
|
|||
|
|
@ -102,7 +102,9 @@ func (v *resourceView) init(ctx context.Context, ns string) {
|
|||
}
|
||||
}(ctx)
|
||||
v.refreshActions()
|
||||
v.CurrentPage().Item.(*tableView).table.Select(0, 0)
|
||||
if tv, ok := v.CurrentPage().Item.(*tableView); ok {
|
||||
tv.table.Select(0, 0)
|
||||
}
|
||||
}
|
||||
|
||||
func (v *resourceView) getTitle() string {
|
||||
|
|
|
|||
Loading…
Reference in New Issue