save config when closing k9s with ctrl-c (#2666)
parent
e8fbbc1194
commit
a0ffa8f392
|
|
@ -151,6 +151,10 @@ func (a *App) bindKeys() {
|
||||||
|
|
||||||
// BailOut exits the application.
|
// BailOut exits the application.
|
||||||
func (a *App) BailOut() {
|
func (a *App) BailOut() {
|
||||||
|
if err := a.Config.Save(true); err != nil {
|
||||||
|
log.Error().Err(err).Msg("config save failed!")
|
||||||
|
}
|
||||||
|
|
||||||
a.Stop()
|
a.Stop()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue