mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-11-14 11:45:29 +08:00
18 lines
270 B
Go
18 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
|
||
|
}
|