gosl/cmd/Cmd.go

25 lines
416 B
Go
Raw Normal View History

2016-01-18 23:19:51 +01:00
package cmd // code.bitsetter.de/fun/gosl/cmd
import (
"os"
"github.com/spf13/cobra"
)
var cmdGosl = &cobra.Command{
Use: "gosl [command]",
Short: "Run a gosl instance",
Long: `Run a gosl server or client."
For further instructions run 'gosl help [command]'
`,
}
func Execute() {
cmdGosl.AddCommand(cmdServer)
cmdGosl.AddCommand(cmdClient)
if err := cmdGosl.Execute(); err != nil {
os.Exit(-1)
}
}