Skip to content

Commit 7ce571f

Browse files
committed
Add custom completions for aws-cli
1 parent 861a997 commit 7ce571f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def complete-commands [
2+
context: string
3+
] {
4+
with-env {COMP_LINE: $context} {
5+
aws_completer
6+
| lines
7+
| each {|x| $"($x) "}
8+
}
9+
}
10+
11+
export extern "aws" [
12+
...command: string@complete-commands
13+
]

0 commit comments

Comments
 (0)