feat(cdk): add plugin (#13831)

Co-authored-by: Marc Cornellà <marc@mcornella.com>
This commit is contained in:
Akshat1927
2026-08-03 13:46:50 +05:30
committed by GitHub
parent 6adfef3a8b
commit da368d6468
3 changed files with 57 additions and 0 deletions

12
plugins/cdk/_cdk Normal file
View File

@@ -0,0 +1,12 @@
#compdef cdk
# Originally found and adapted from: https://github.com/aws/aws-cdk/discussions/24380#discussioncomment-5158176
local -a reply
local IFS
IFS=$'\n' reply=($(COMP_CWORD="$((CURRENT-1))" \
COMP_LINE="$BUFFER" \
COMP_POINT="$CURSOR" \
cdk --get-yargs-completions "${words[@]}"))
_describe 'values' reply