Add completion spec: Azure CLI (az)#210
Closed
lucieleblanc wants to merge 1 commit into
Closed
Conversation
APP-3512 Add Azure CLI (az) completion spec
No See GitHub #244 (moved to #652, never implemented) |
Adds a comprehensive completion spec for the Azure CLI covering: - Global options: --output, --query, --subscription, --verbose, --debug, --help, --only-show-errors - Top-level commands: login, logout, configure, feedback, find, interactive, rest, upgrade, version - Major command groups with full subcommands and options: - account (set, show, list, clear, get-access-token, lock, management-group) - acr (build, create, delete, list, login, show, repository) - ad (app, group, sp, user) - aks (create, delete, get-credentials, list, show, scale, upgrade, nodepool) - appservice plan (create, delete, list, show, update) - container (create, delete, list, logs, show, exec) - deployment (group, sub) - extension (add, list, list-available, remove, show, update) - functionapp (create, delete, list, show, restart, start, stop) - group (create, delete, exists, export, list, show, update, lock) - keyvault (create, delete, list, show, secret, key) - monitor (metrics, activity-log, log-analytics workspace) - network (vnet, nsg, public-ip with subnets and rules) - resource (list, show, delete, tag) - role (assignment, definition) - storage (account, blob, container with keys) - vm (create, delete, list, show, start, stop, restart, deallocate, resize, open-port, run-command, image) - webapp (create, delete, list, show, browse, restart, start, stop, up, log, deployment) Resolves APP-3512 Co-Authored-By: Oz <oz-agent@warp.dev>
2638521 to
64e9467
Compare
Contributor
Author
|
No generators were included. Retrying this once skills are loading correctly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a comprehensive Azure CLI (
az) completion spec with Rust generators for dynamic completions, resolving APP-3512 / GitHub #244.What's included
Generators (
src/generators/az.rs)12 dynamic generators that query the user's Azure environment:
resource_groups—az group list(used across most--resource-group/-gargs)subscriptions—az account list(global--subscriptionoption)locations—az account list-locations(all--location/-largs)vms—az vm list(VM name args)aks_clusters—az aks list(AKS cluster name args)storage_accounts—az storage account listcontainer_registries—az acr listkey_vaults—az keyvault listwebapps—az webapp listfunctionapps—az functionapp listnsgs—az network nsg listvnets—az network vnet listAll generators use
--query "[].name" -o tsv 2>/dev/nullfor clean, cross-platform output.JSON spec (
json/az.json)Global persistent options:
--output,--query,--subscription(with generator),--verbose,--debug,--help,--only-show-errorsTop-level commands:
login,logout,configure,feedback,find,interactive,rest,upgrade,versionCommand groups with full subcommands, options, and generators:
account— subscription management, locks, management groupsacr— Azure Container Registry (build, create, login, repository)ad— Entra ID / Azure AD (app, group, sp, user)aks— Azure Kubernetes Service (create, get-credentials, scale, upgrade, nodepool)appservice plan— App Service planscontainer— Azure Container Instancesdeployment— ARM template deployments (group, sub)extension— CLI extension managementfunctionapp— Azure Functionsgroup— resource group management with lockskeyvault— Key Vault (secrets, keys)monitor— metrics, activity-log, log-analytics workspacenetwork— VNet (with subnets), NSG (with rules), public IPresource— generic resource operationsrole— RBAC assignments and definitionsstorage— accounts (with keys), blob, containervm— VMs (create, start/stop, resize, run-command, image)webapp— web apps (create, deploy, logs)Validation
npm run format)script/presubmitpasses: formatting, clippy, all tests (11/11)Conversation: https://staging.warp.dev/conversation/640db416-aa36-441f-9df7-a0d0efb4714e
Run: https://oz.staging.warp.dev/runs/019d473b-6e4e-7e0e-a5a5-ea03ba7d743c
This PR was generated with Oz.