Skip to content

Commit

Permalink
wip commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mcalhoun committed Jan 7, 2025
1 parent ea80de1 commit 00e6a55
Show file tree
Hide file tree
Showing 3 changed files with 261 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cmd/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import (

type contextKey string

const atmosInfoKey contextKey = "atmos_info"

// terraformCmd represents the base command for all terraform sub-commands
var terraformCmd = &cobra.Command{
Use: "terraform",
Expand All @@ -44,7 +46,7 @@ var terraformCmd = &cobra.Command{
u.LogErrorAndExit(schema.AtmosConfiguration{}, err)
}

ctx := context.WithValue(context.Background(), contextKey("atmos_info"), info)
ctx := context.WithValue(context.Background(), contextKey(atmosInfoKey), info)
RootCmd.SetContext(ctx)

// Check Atmos configuration
Expand Down
Loading

0 comments on commit 00e6a55

Please sign in to comment.