mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-25 03:52:02 -08:00
20 lines
346 B
Go
20 lines
346 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/bdlm/log"
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
// cmdRoot represents the base command when called without any subcommands
|
||
|
var cmdRoot = &cobra.Command{
|
||
|
Use: "fluxxmpp",
|
||
|
Short: "fluxxIO's xmpp comandline tool",
|
||
|
}
|
||
|
|
||
|
func main() {
|
||
|
log.AddHook(&hook{})
|
||
|
if err := cmdRoot.Execute(); err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
}
|