Configuration loader and defaults for Infracost CLI.
// Source: https://github.com/infracost/infracost | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package config
import (
"fmt"
"io"
"os"
"path/filepath"
"strings"
"time"
"github.com/fatih/color"
"github.com/joho/godotenv"
"github.com/kelseyhightower/envconfig"
"github.com/rs/zerolog"
"github.com/spf13/cobra"
"github.com/infracost/infracost/internal/logging"
)
const InfracostDir = ".infracost"
type AutodetectConfig struct {
// EnvNames is the list of environment names that we should use to group
// terraform var files.
EnvNames []string `yaml:"env_names,omitempty" ignored:"true"`
// ExcludeDirs is a list of directories that the autodetect should ignore.
Exclu
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key