mirror of
https://github.com/Unkn0wnCat/calapi.git
synced 2025-04-29 18:16:19 +02:00
27 lines
582 B
Go
27 lines
582 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// rootCmd represents the base command when called without any subcommands
|
|
var rootCmd = &cobra.Command{
|
|
Use: "calapi",
|
|
Short: "Your headless calendar.",
|
|
Long: `CalAPI allows you to have a headless calendar which can be manipulated using a GraphQL-API.`,
|
|
}
|
|
|
|
// 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() {
|
|
err := rootCmd.Execute()
|
|
if err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
|
|
}
|