main.go (16 lines of code) (raw):

package main import ( "github.com/Azure/kusto-ingest/internal/cli" "github.com/Azure/kusto-ingest/internal/kusto" "github.com/alecthomas/kong" ) var CLI struct { Verbose bool `short:"v" help:"Enable verbose logging."` File kusto.FileIngestOptions `cmd:"" help:"Ingest data from local file."` } func main() { ctx := kong.Parse(&CLI) ctx.BindTo(cli.Default(CLI.Verbose), (*cli.Provider)(nil)) err := ctx.Run() ctx.FatalIfErrorf(err) }