19 lines
328 B
Go
19 lines
328 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"somegit.dev/vikingowl/reddit-reader/internal/setup"
|
|
)
|
|
|
|
var setupCmd = &cobra.Command{
|
|
Use: "setup",
|
|
Short: "Interactive first-run setup wizard",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
return setup.Run()
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(setupCmd)
|
|
}
|