From f1382515173c7ad3d5359d2608602f91e046fdd4 Mon Sep 17 00:00:00 2001 From: JeffreyCA Date: Wed, 3 Dec 2025 17:46:28 -0800 Subject: [PATCH] Update azd fig spec Add extension commands Add layer arg Use generator for `extension show` --- .../terminal-suggest/src/completions/azd.ts | 64 ++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/extensions/terminal-suggest/src/completions/azd.ts b/extensions/terminal-suggest/src/completions/azd.ts index 1b5609b0433..2a4adb84d62 100644 --- a/extensions/terminal-suggest/src/completions/azd.ts +++ b/extensions/terminal-suggest/src/completions/azd.ts @@ -191,6 +191,16 @@ const completionSpec: Fig.Spec = { name: ['add'], description: 'Add a component to your project.', }, + { + name: ['ai'], + description: 'Extension for the Foundry Agent Service. (Preview)', + subcommands: [ + { + name: ['agent'], + description: 'Extension for the Foundry Agent Service. (Preview)', + }, + ], + }, { name: ['auth'], description: 'Authenticate with Azure.', @@ -274,6 +284,10 @@ const completionSpec: Fig.Spec = { }, ], }, + { + name: ['coding-agent'], + description: 'This extension configures GitHub Copilot Coding Agent access to Azure', + }, { name: ['completion'], description: 'Generate shell completion scripts.', @@ -351,6 +365,10 @@ const completionSpec: Fig.Spec = { }, ], }, + { + name: ['demo'], + description: 'This extension provides examples of the AZD extension framework.', + }, { name: ['deploy'], description: 'Deploy your project code to Azure.', @@ -407,6 +425,10 @@ const completionSpec: Fig.Spec = { isDangerous: true, }, ], + args: { + name: 'layer', + isOptional: true, + }, }, { name: ['env'], @@ -499,6 +521,15 @@ const completionSpec: Fig.Spec = { }, ], }, + { + name: ['--layer'], + description: 'Provisioning layer to refresh the environment from.', + args: [ + { + name: 'layer', + }, + ], + }, ], args: { name: 'environment', @@ -647,7 +678,8 @@ const completionSpec: Fig.Spec = { }, ], args: { - name: 'extension-name', + name: 'extension-id', + generators: azdGenerators.listExtensions, }, }, { @@ -1273,6 +1305,10 @@ const completionSpec: Fig.Spec = { description: 'Preview changes to Azure resources.', }, ], + args: { + name: 'layer', + isOptional: true, + }, }, { name: ['publish'], @@ -1474,6 +1510,10 @@ const completionSpec: Fig.Spec = { name: ['version'], description: 'Print the version number of Azure Developer CLI.', }, + { + name: ['x'], + description: 'This extension provides a set of tools for AZD extension developers to test and debug their extensions.', + }, { name: ['help'], description: 'Help about any command', @@ -1482,6 +1522,16 @@ const completionSpec: Fig.Spec = { name: ['add'], description: 'Add a component to your project.', }, + { + name: ['ai'], + description: 'Extension for the Foundry Agent Service. (Preview)', + subcommands: [ + { + name: ['agent'], + description: 'Extension for the Foundry Agent Service. (Preview)', + }, + ], + }, { name: ['auth'], description: 'Authenticate with Azure.', @@ -1496,6 +1546,10 @@ const completionSpec: Fig.Spec = { }, ], }, + { + name: ['coding-agent'], + description: 'This extension configures GitHub Copilot Coding Agent access to Azure', + }, { name: ['completion'], description: 'Generate shell completion scripts.', @@ -1552,6 +1606,10 @@ const completionSpec: Fig.Spec = { }, ], }, + { + name: ['demo'], + description: 'This extension provides examples of the AZD extension framework.', + }, { name: ['deploy'], description: 'Deploy your project code to Azure.', @@ -1768,6 +1826,10 @@ const completionSpec: Fig.Spec = { name: ['version'], description: 'Print the version number of Azure Developer CLI.', }, + { + name: ['x'], + description: 'This extension provides a set of tools for AZD extension developers to test and debug their extensions.', + }, ], }, ],