feat: list available ".env" variable names for non-hosted apps#437
feat: list available ".env" variable names for non-hosted apps#437zimeg wants to merge 1 commit intozimeg-feat-load-hook-dotenvfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## zimeg-feat-load-hook-dotenv #437 +/- ##
===============================================================
+ Coverage 70.27% 70.28% +0.01%
===============================================================
Files 220 220
Lines 18534 18540 +6
===============================================================
+ Hits 13024 13031 +7
+ Misses 4336 4335 -1
Partials 1174 1174 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| "List environment variables available to the app at runtime.", | ||
| "", | ||
| "This command is supported for apps deployed to Slack managed infrastructure but", | ||
| "other apps can attempt to run the command with the --force flag.", | ||
| "Commands that run in the context of a project source environment variables from", | ||
| "the \".env\" file. This includes the \"run\" command.", | ||
| "", | ||
| "The \"deploy\" command gathers environment variables from the \".env\" file as well", | ||
| "unless the app is using ROSI features.", |
| return err | ||
| } | ||
| } else { | ||
| dotEnv, err := hooks.LoadDotEnv(clients.Fs) |
There was a problem hiding this comment.
🪝 note: We reuse the logic that hooks has for gathering environment variables for confidence in matching!
🐟 ramble: We don't require app selection before this at this point, but we might consider keeping it to avoid breaking change if it becomes required later. FWIW it's required for hosted apps so this is familiar experience I think!
srtaalej
left a comment
There was a problem hiding this comment.
working nicely for me! thanks for adding these changes ⭐
| })) | ||
|
|
||
| if len(variableNames) <= 0 { | ||
| if count <= 0 { |
There was a problem hiding this comment.
nice catch i wonder why count was not used here before 🤔


Changelog
Summary
This PR lists available
.envvariable names for non-hosted apps to match what's available to hooks and theruncommand.Preview
Reviewers
Your check is so appreciated. The following commands might recommend testing:
When done please do delete these apps! This is the environment command kindplace 🌲 ✨
Requirements