Skip to content

Should document azure-dev.commands.getDotEnvFilePath #5135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
heaths opened this issue Apr 30, 2025 · 0 comments · May be fixed by #5218
Open

Should document azure-dev.commands.getDotEnvFilePath #5135

heaths opened this issue Apr 30, 2025 · 0 comments · May be fixed by #5218
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@heaths
Copy link
Member

heaths commented Apr 30, 2025

While trying to figure out a way to read the right - or any - azd-generated .env file, I found in your commands the azure-dev.commands.getDotEnvFilePath. Trying that in launch.json's inputs, I found it actually worked!

{
  // ...
      "envFile": "${input:azdDotenv}"
    }
  ],
  "inputs": [
    {
      "id": "azdDotenv",
      "type": "command",
      "command": "azure-dev.commands.getDotEnvFilePath"
    }
  ]
}

And before I filed this issue, I see you use it in a lot of templates. I think it would be great to document this use case for any dev using azd whether they start from a template or, more to the point, not. This is incredibly handy for projects using azd.

@spboyer spboyer added the documentation Improvements or additions to documentation label May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants