Add defaultRepository global setting for interactive mode #50
+176
−63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new
defaultRepositorysetting to the global configuration file (~/.azbootstrap-globals.jsonc) that provides a default template repository when running in interactive mode.Changes Made
Core Functionality
Start-AzBootstrapInteractiveMode.ps1: Added logic to load the global config and usedefaultRepositoryas the default when prompting for template repository URLConfiguration & Documentation
.azbootstrap-globals.jsonc.example: AddeddefaultRepositorysetting exampleTesting
Test-Interactive.Tests.ps1: Added focused tests covering both scenarios (config present/absent)Usage Example
{ "templateAliases": { "terraform": "https://github.com/kewalaka/terraform-azure-starter-template", "bicep": "https://github.com/kewalaka/bicep-azure-starter-template" }, "defaultLocation": "eastus", "defaultRepository": "terraform" // Can be alias, shorthand, or full URL }When running interactively without specifying a template repository:
Key Features
owner/repo), or full URLsdefaultLocationFixes #49.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.