Skip to content

Commit

Permalink
feat(cmd): root command
Browse files Browse the repository at this point in the history
  • Loading branch information
leodido authored and fntlnz committed Nov 25, 2018
1 parent 108fe85 commit f4f7f34
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package main

import (
"os"

"github.com/fntlnz/kubectl-trace/pkg/cmd"
"github.com/spf13/pflag"
"k8s.io/cli-runtime/pkg/genericclioptions"
)

func main() {
flags := pflag.NewFlagSet("kubectl-trace", pflag.ExitOnError)
pflag.CommandLine = flags

streams := genericclioptions.IOStreams{
In: os.Stdin,
Out: os.Stdout,
ErrOut: os.Stderr,
}
root := cmd.NewTraceCommand(streams)
if err := root.Execute(); err != nil {
os.Exit(1)
}
}

0 comments on commit f4f7f34

Please sign in to comment.