24 lines
393 B
Go
24 lines
393 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/derailed/k9s/cmd"
|
|
"github.com/derailed/k9s/views"
|
|
log "github.com/sirupsen/logrus"
|
|
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
|
|
)
|
|
|
|
func init() {
|
|
mod := os.O_CREATE | os.O_APPEND | os.O_WRONLY
|
|
if file, err := os.OpenFile(views.K9sLogs, mod, 0644); err == nil {
|
|
log.SetOutput(file)
|
|
} else {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
func main() {
|
|
cmd.Execute()
|
|
}
|