26 lines
413 B
Go
26 lines
413 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "intake",
|
|
Short: "Universal and extensible feed aggregator",
|
|
Long: `intake, the universal and extensible feed aggregator`,
|
|
}
|
|
|
|
func Execute() {
|
|
err := rootCmd.Execute()
|
|
if err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
// Disable the automatic help command
|
|
rootCmd.SetHelpCommand(&cobra.Command{Hidden: true})
|
|
}
|