teldrive/cmd/root.go

18 lines
270 B
Go
Raw Normal View History

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
}