summaryrefslogtreecommitdiff
path: root/cmd/aocli/main.go
blob: 357b25d756b4711008f9502af1ccc7005149db91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package main

import (
	"fmt"
	"os"

	"github.com/spf13/cobra"
)

var rootCmd = &cobra.Command{
	Use:   "aocli [command]",
	Short: "AOCLI is a CLI for running Advent of Code solvers and generating boilerplate code",
}

func init() {
	rootCmd.AddCommand(genCmd)
}

func main() {
	if err := rootCmd.Execute(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}