main.go 393 B

12345678910111213141516171819202122
  1. package main
  2. import (
  3. "flag"
  4. "os"
  5. "github.com/kubecost/cost-model/pkg/cmd"
  6. "k8s.io/klog"
  7. )
  8. func main() {
  9. klog.InitFlags(nil)
  10. flag.Set("v", "3")
  11. flag.Parse()
  12. // runs the appropriate application mode using the default cost-model command
  13. // see: github.com/kubecost/cost-model/pkg/cmd package for details
  14. if err := cmd.Execute(nil); err != nil {
  15. klog.Fatal(err)
  16. os.Exit(1)
  17. }
  18. }