0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00
schollz_croc/cmd/install.go
Zack Scholl 5257b9db4a forking
2019-04-08 07:28:42 -07:00

23 lines
424 B
Go

package cmd
import (
"sort"
"github.com/schollz/croc/cmd/bench"
"github.com/schollz/croc/cmd/receive"
"github.com/schollz/croc/cmd/send"
log "github.com/sirupsen/logrus"
"gopkg.in/urfave/cli.v1"
)
// Install all the commands
func Install(app *cli.App) {
app.Commands = []cli.Command{
send.New(),
receive.New(),
bench.New(),
}
log.Trace("Installed commands")
sort.Sort(cli.CommandsByName(app.Commands))
}