Skip to content

Add dry run and debug flags - #7

Merged
brandonc merged 2 commits into
mainfrom
shweta/verbose_dry_run_flag
Apr 28, 2026
Merged

Add dry run and debug flags#7
brandonc merged 2 commits into
mainfrom
shweta/verbose_dry_run_flag

Conversation

@shwetamurali

Copy link
Copy Markdown
Collaborator

Summary

  • add shared global --dry-run shared access and align verbose diagnostics with the existing --debug plus profile.verbosity logger model
  • implement dry-run behavior in api, variable import, and all of the higher-level profile mutation commands
  • keep dry-run output on stderr, use plain-English messages for higher-level commands, and keep low-level request visibility in debug logs

Testing Output

Screenshot 2026-04-15 at 9 42 28 AM Screenshot 2026-04-15 at 9 42 50 AM

@shwetamurali
shwetamurali marked this pull request as ready for review April 15, 2026 13:43
@github-actions

Copy link
Copy Markdown
Contributor

Reliability Check(s) Results

Target Asset: tfcloud
Checks Executed: none

✅ All checks passed!

Comment thread internal/pkg/cmd/context.go Outdated
Comment thread internal/commands/api/api.go Outdated
Comment thread internal/commands/profile/profiles/activate.go Outdated
Comment thread internal/commands/profile/profiles/dry_run.go Outdated
Comment thread internal/pkg/cmd/context.go Outdated
Comment thread internal/pkg/cmd/context.go

@brandonc brandonc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it needs a rebase. In general, let's remove the ctx from the command internal functions and use IO, which is usually already in there

Comment thread internal/pkg/cmd/context.go Outdated
Comment thread internal/commands/profile/profiles/activate.go Outdated
Comment thread internal/commands/profile/profiles/activate_test.go Outdated
Comment thread internal/commands/variable/variable_import.go Outdated
@shwetamurali
shwetamurali force-pushed the shweta/verbose_dry_run_flag branch from 335fa23 to ec3df85 Compare April 23, 2026 14:59
@shwetamurali
shwetamurali force-pushed the shweta/verbose_dry_run_flag branch from 5d104b2 to ec97873 Compare April 28, 2026 17:43
Comment thread internal/pkg/cmd/context.go Outdated
Comment thread internal/commands/profile/profiles/test_helpers_test.go Outdated
brandonc
brandonc previously approved these changes Apr 28, 2026
@brandonc
brandonc merged commit 1221a22 into main Apr 28, 2026
3 checks passed
@brandonc
brandonc deleted the shweta/verbose_dry_run_flag branch April 28, 2026 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants