Skip to content

feat(env): filter variables by prefix#490

Open
jongio wants to merge 1 commit into
mainfrom
idea/env-prefix-filter
Open

feat(env): filter variables by prefix#490
jongio wants to merge 1 commit into
mainfrom
idea/env-prefix-filter

Conversation

@jongio

@jongio jongio commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Closes #487

Summary

  • add repeatable --prefix filtering to azd app env
  • apply the filter to dotenv, shell, JSON, --keys, --all, --write, and --explain
  • report a clear message when a filtered text output has no matches

Verification

  • go test .\src\cmd\app\commands -run "Test(NewEnvCommand|FilterEnvByPrefixes|RunEnvCommand|RunEnvWrite|RenderAllEnv)"
  • mage test
  • mage build

@jongio jongio added the idea Feature idea from the idea pipeline label Jul 11, 2026
@jongio jongio self-assigned this Jul 11, 2026
github-actions Bot added a commit that referenced this pull request Jul 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Website Preview

Your PR preview is ready!

📎 Preview URL: https://jongio.github.io/azd-app/pr/490/

This preview will be automatically cleaned up when the PR is closed.

@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 74.57627% with 15 lines in your changes missing coverage. Please review.
✅ Project coverage is 60.78%. Comparing base (68b3cae) to head (364106e).

Files with missing lines Patch % Lines
cli/src/cmd/app/commands/env.go 74.57% 10 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #490      +/-   ##
==========================================
+ Coverage   60.77%   60.78%   +0.01%     
==========================================
  Files         223      223              
  Lines       28527    28575      +48     
==========================================
+ Hits        17337    17370      +33     
- Misses      10010    10020      +10     
- Partials     1180     1185       +5     
Flag Coverage Δ
unittests 60.78% <74.57%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cli/src/cmd/app/commands/env.go 80.76% <74.57%> (-1.83%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Test This PR

A preview build (0.19.5-pr490) is ready for testing!

🌐 Website Preview

Live Preview: https://jongio.github.io/azd-app/pr/490/

One-Line Install (Recommended)

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.ps1) } -PrNumber 490 -Version 0.19.5-pr490"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/install-pr.sh | bash -s 490 0.19.5-pr490

Uninstall

When you're done testing:

PowerShell (Windows):

iex "& { $(irm https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.ps1) } -PrNumber 490"

Bash (macOS/Linux):

curl -fsSL https://raw.githubusercontent.com/jongio/azd-app/main/cli/scripts/uninstall-pr.sh | bash -s 490

Build Info:

What to Test:
Please review the PR description and test the changes described there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter azd app env output by variable prefix

1 participant