Skip to content

Commit a9deb44

Browse files
authored
Integrate azd-core library for Key Vault reference resolution (#25)
* feat: Migrate Key Vault resolution to azd-core library - Refactored Key Vault resolution logic to utilize the new azd-core library, specifically the keyvault and env packages. - Updated tests to validate the new resolution behavior and ensure compatibility with existing CLI flags. - Removed deprecated custom Key Vault resolver code and related tests. - Enhanced shell detection logic to prioritize shebang lines and improved error handling in the shell detection implementation. - Added comprehensive documentation for code review standards and integration tasks. - Updated versioning information and added tests for version constants. - Improved test helpers for capturing output and locating test resources. - Cleaned up and organized project documentation, including README files and task tracking for ongoing development. * fix: update Key Vault resolver references to use azd-core library
1 parent cd1d1dd commit a9deb44

51 files changed

Lines changed: 1187 additions & 1328 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: GitHub Actions Workflows Setup
3+
description: Required permissions and settings for GitHub Actions workflows
4+
lastUpdated: 2026-01-09
5+
tags: [github-actions, ci-cd, automation]
6+
---
7+
18
# GitHub Actions Workflows - Setup Guide
29

310
This document describes the required permissions and settings for the GitHub Actions workflows in this repository.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
coverage.txt
1515
coverage.html
1616
coverage/
17+
*coverage*
1718
cov
1819
cov-*
1920
test-cov*

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: Contributing to azd-exec
3+
description: Guidelines for contributing to the azd-exec project
4+
lastUpdated: 2026-01-09
5+
tags: [contributing, development, guidelines]
6+
---
7+
18
# Contributing to azd-exec
29

310
We love your input! We want to make contributing to azd-exec as easy and transparent as possible, whether it's:

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: azd exec
3+
description: Execute any script with full access to your Azure Developer CLI environment variables and Azure credentials
4+
lastUpdated: 2026-01-09
5+
tags: [azure, cli, devops, scripts, keyvault]
6+
---
7+
18
<div align="center">
29

310
# azd exec
@@ -279,6 +286,8 @@ Scripts executed by `azd exec` have access to all azd environment variables:
279286

280287
`azd exec` automatically resolves Azure Key Vault references in environment variables, allowing you to securely store and access secrets without hardcoding them.
281288

289+
> **Note**: Key Vault resolution is provided by the [azd-core](https://github.com/jongio/azd-core) library, a shared utility for Azure Developer CLI tools.
290+
282291
### Supported Reference Formats
283292

284293
**Format 1: SecretUri**

TESTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: Testing Guide
3+
description: Comprehensive testing guide covering unit, integration, and e2e tests
4+
lastUpdated: 2026-01-09
5+
tags: [testing, quality, automation]
6+
---
7+
18
# Testing Guide
29

310
This project includes comprehensive testing across multiple layers: unit tests, integration tests, and end-to-end (e2e) tests.

cli/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: Changelog
3+
description: Release history and changes for azd-exec CLI
4+
lastUpdated: 2026-01-09
5+
tags: [changelog, releases, version-history]
6+
---
7+
18
## [0.2.29] - 2026-01-08
29

310
- refactor: update Key Vault reference commands to use 'set-secret' for environment variables (8dd9d28)

cli/docs/cli-reference.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: CLI Reference
3+
description: Complete command reference for azd exec extension
4+
lastUpdated: 2026-01-09
5+
tags: [cli, reference, documentation, commands]
6+
---
7+
18
# CLI Reference
29

310
Complete reference for the `azd exec` extension commands and flags.
@@ -212,6 +219,8 @@ All azd environment variables are available to your scripts:
212219

213220
`azd exec` automatically resolves Azure Key Vault references in environment variables before running your script.
214221

222+
> **Implementation**: Key Vault resolution is powered by the [azd-core](https://github.com/jongio/azd-core) library, ensuring consistent behavior across Azure Developer CLI tools.
223+
215224
**Supported Formats:**
216225

217226
```bash

cli/docs/dev/integration-tests.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: Integration Tests
3+
description: Integration test suite for azd-exec CLI
4+
lastUpdated: 2026-01-09
5+
tags: [testing, integration-tests, development]
6+
---
7+
18
# Integration Tests
29

310
This document describes the integration test suite for azd-exec.

cli/docs/dev/testing-pr-builds.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: Testing PR Builds
3+
description: Guide for testing pull request builds before merge
4+
lastUpdated: 2026-01-09
5+
tags: [testing, pr-builds, development, ci-cd]
6+
---
7+
18
# Testing PR Builds
29

310
Want to test changes from a pull request before they're merged? Follow this guide!

cli/docs/dev/testing.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
---
2+
title: Testing Guide
3+
description: Testing strategies and practices for azd-exec extension
4+
lastUpdated: 2026-01-09
5+
tags: [testing, development, quality]
6+
---
7+
18
# Testing Guide
29

310
This guide covers testing strategies and practices for the azd-exec extension.

0 commit comments

Comments
 (0)