This repository has been archived on 2020-09-27. You can view files and clone it, but cannot push or open issues or pull requests.
2017-10-01 23:30:48 +02:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
timestamps bool
|
|
|
|
)
|
|
|
|
|
|
|
|
// RootCmd represents the base command when called without any subcommands
|
2018-02-07 19:32:11 +01:00
|
|
|
var RootCMD = &cobra.Command{
|
2017-10-01 23:30:48 +02:00
|
|
|
Use: "yaja",
|
|
|
|
Short: "Yet another jabber server",
|
|
|
|
Long: `A small standalone jabber server, for easy deployment`,
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute adds all child commands to the root command and sets flags appropriately.
|
|
|
|
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
|
|
|
func Execute() {
|
2018-02-07 19:32:11 +01:00
|
|
|
if err := RootCMD.Execute(); err != nil {
|
2017-10-01 23:30:48 +02:00
|
|
|
log.Panicln(err)
|
|
|
|
}
|
|
|
|
}
|