This repository has been archived on 2025-11-25. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
combluotion-old/commands/root.go
2023-03-24 13:03:21 -05:00

25 lines
344 B
Go

package commands
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "gopub",
Short: "gopub is a single-user ActivityPub instance",
Long: "...",
}
func init() {
rootCmd.AddCommand(AppCmd)
}
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}