init.go

 1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 2//
 3// SPDX-License-Identifier: AGPL-3.0-or-later
 4
 5package cmd
 6
 7import (
 8	"fmt"
 9
10	"github.com/spf13/cobra"
11)
12
13var initCmd = &cobra.Command{
14	Use:   "init",
15	Short: "Initialize lune configuration interactively",
16	Long: `Interactively set up your lune configuration.
17
18This command will guide you through:
19  - Verifying your LUNATASK_API_KEY
20  - Adding areas, goals, notebooks, and habits from Lunatask
21  - Setting default area and notebook`,
22	RunE: func(cmd *cobra.Command, args []string) error {
23		// TODO: implement interactive setup with huh
24		fmt.Fprintln(cmd.OutOrStdout(), "Interactive setup not yet implemented")
25
26		return nil
27	},
28}