teldrive/cmd/root.go

17 lines
270 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
func New() *cobra.Command {
cmd := &cobra.Command{
Use: "teldrive",
Short: "Teldrive",
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}
cmd.AddCommand(NewRun(), NewVersion())
return cmd
}