2016-01-18 23:19:51 +01:00
|
|
|
package cmd // code.bitsetter.de/fun/gosl/cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
2016-01-30 02:04:13 +01:00
|
|
|
type handshake struct{ ID, W, H int }
|
|
|
|
|
2016-02-06 01:48:29 +01:00
|
|
|
var CmdGosl = &cobra.Command{
|
2016-01-18 23:19:51 +01:00
|
|
|
Use: "gosl [command]",
|
|
|
|
Short: "Run a gosl instance",
|
2016-01-19 16:38:15 +01:00
|
|
|
Long: `Run a gosl server or client.
|
2016-01-18 23:19:51 +01:00
|
|
|
|
|
|
|
For further instructions run 'gosl help [command]'
|
|
|
|
`,
|
|
|
|
}
|
|
|
|
|
|
|
|
func Execute() {
|
2016-02-06 01:48:29 +01:00
|
|
|
if err := CmdGosl.Execute(); err != nil {
|
2016-01-18 23:19:51 +01:00
|
|
|
os.Exit(-1)
|
|
|
|
}
|
|
|
|
}
|