Merge pull request #570 from ludusrusso/master

Add loading message at startup 🚀
mine
Fernand Galiana 2020-03-06 15:06:43 -07:00 committed by GitHub
commit b1b33fb04e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package main package main
import ( import (
"fmt"
"os" "os"
"github.com/derailed/k9s/cmd" "github.com/derailed/k9s/cmd"
@ -15,6 +16,7 @@ func init() {
} }
func main() { func main() {
fmt.Printf("loading k9s...\n")
mod := os.O_CREATE | os.O_APPEND | os.O_WRONLY mod := os.O_CREATE | os.O_APPEND | os.O_WRONLY
file, err := os.OpenFile(config.K9sLogs, mod, config.DefaultFileMod) file, err := os.OpenFile(config.K9sLogs, mod, config.DefaultFileMod)
if err != nil { if err != nil {