mirror of
https://github.com/int128/kubelogin.git
synced 2026-02-14 08:29:51 +00:00
* Lock token cache file in authentication * Fix tests * make generate * Lock before FindByKey * Fix test
20 lines
307 B
Go
20 lines
307 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
"github.com/int128/kubelogin/pkg/di"
|
|
)
|
|
|
|
var version = "HEAD"
|
|
|
|
func main() {
|
|
ctx := context.Background()
|
|
ctx, stop := signal.NotifyContext(ctx, os.Interrupt, syscall.SIGTERM)
|
|
defer stop()
|
|
os.Exit(di.NewCmd().Run(ctx, os.Args, version))
|
|
}
|