Greetings! Quick questions. Why does docs.go hand...
# atmos-dev
c
Greetings! Quick questions. Why does docs.go handle the initialization of configurations for the atmos app?
Copy code
info := schema.ConfigAndStacksInfo{
				Component:             args[0],
				ComponentFolderPrefix: "terraform",
			}

			atmosConfig, err := cfg.InitCliConfig(info, true)
			if err != nil {
				u.PrintErrorMarkdownAndExit("", err, "")
			}
I ask wondering why we do not execute the initialization before calling the command
Copy code
var docsCmd = &cobra.Command{
	Use:                "docs",
	Short:              "Open Atmos documentation or display component-specific docs",
	Long:               `This command opens the Atmos docs or displays the documentation for a specified Atmos component.`,
	Example:            "atmos docs vpc",
	Args:               cobra.MaximumNArgs(1),
	FParseErrWhitelist: struct{ UnknownFlags bool }{UnknownFlags: false},
	ValidArgsFunction:  ComponentsArgCompletion,
	Run: func(cmd *cobra.Command, args []string) {
I see a number of variations including this
Copy code
// Check Atmos configuration
checkAtmosConfig()