remove legacy cmd flags

This commit is contained in:
c9s 2021-01-21 12:10:06 +08:00
parent 45876968d9
commit 503df57e72

View File

@ -2,7 +2,6 @@ package cmd
import ( import (
"context" "context"
"runtime"
"github.com/pkg/errors" "github.com/pkg/errors"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
@ -12,9 +11,6 @@ import (
) )
func init() { func init() {
BuildCmd.Flags().StringP("output", "o", "", "binary output")
BuildCmd.Flags().String("os", runtime.GOOS, "GOOS")
BuildCmd.Flags().String("arch", runtime.GOARCH, "GOARCH")
BuildCmd.Flags().String("config", "", "config file") BuildCmd.Flags().String("config", "", "config file")
RootCmd.AddCommand(BuildCmd) RootCmd.AddCommand(BuildCmd)
} }