package config import ( "log/slog" "github.com/spf13/cobra" "git.avsdev.uk/Go/job-search/internal/cli" ) // NewCommand returns the "config" command, which shows and edits the // configuration. func NewCommand(opts *cli.Options) *cobra.Command { cmd := &cobra.Command{ Use: "config", Short: "Configuration management", PersistentPreRun: func(cmd *cobra.Command, args []string) { slog.Debug("command persistent pre-run", "command", "config") }, PersistentPostRun: func(cmd *cobra.Command, args []string) { slog.Debug("command persistent post-run", "command", "config") }, } cmd.AddCommand(commandShow(opts)) cmd.AddCommand(commandGet(opts)) cmd.AddCommand(commandSet(opts)) cmd.AddCommand(commandInit()) return cmd }