File tree Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Expand file tree Collapse file tree 2 files changed +30
-8
lines changed Original file line number Diff line number Diff line change 1
1
_bma_stacks_completion () {
2
- local command=" $1 "
3
- local word=" $2 "
4
- COMPREPLY=($( compgen -W " $( stacks) " -- ${word} ) )
5
- return 0
2
+ local command=" $1 "
3
+ local word=" $2 "
4
+
5
+ case " " in
6
+ 1)
7
+ COMPREPLY=( $( compgen -W " $( stacks) " -- ${word} ) )
8
+ return 0
9
+ ;;
10
+ * )
11
+ COMPREPLY=( $( compgen -f ${word} ) )
12
+ return 0
13
+ ;;
14
+ esac
6
15
}
7
16
8
17
_bma_instances_completion () {
@@ -54,6 +63,7 @@ complete -F _bma_stacks_completion stacks
54
63
complete -F _bma_stacks_completion stack-cancel-update
55
64
complete -F _bma_stacks_completion stack-update
56
65
complete -F _bma_stacks_completion stack-delete
66
+ complete -F _bma_stacks_completion stack-recreate
57
67
complete -F _bma_stacks_completion stack-failure
58
68
complete -F _bma_stacks_completion stack-events
59
69
complete -F _bma_stacks_completion stack-resources
Original file line number Diff line number Diff line change @@ -3,10 +3,19 @@ ROOT_DIR="$(dirname $0)/../"
3
3
4
4
cat << EOF
5
5
_bma_stacks_completion() {
6
- local command="\$ 1"
7
- local word="\$ 2"
8
- COMPREPLY=(\$ (compgen -W "\$ (stacks)" -- \$ {word}))
9
- return 0
6
+ local command="\$ 1"
7
+ local word="\$ 2"
8
+
9
+ case "${COMP_CWORD} " in
10
+ 1)
11
+ COMPREPLY=( \$ (compgen -W "\$ (stacks)" -- \$ {word}) )
12
+ return 0
13
+ ;;
14
+ *)
15
+ COMPREPLY=( \$ (compgen -f \$ {word}) )
16
+ return 0
17
+ ;;
18
+ esac
10
19
}
11
20
12
21
_bma_instances_completion() {
@@ -42,6 +51,9 @@ for type in instance asg stack; do
42
51
for function in ${functions} ; do
43
52
[[ " ${function} " == " stack-validate" ]] && continue
44
53
[[ " ${function} " == " stack-create" ]] && continue
54
+ [[ " ${function} " == " asg-desired-size-set" ]] && continue
55
+ [[ " ${function} " == " asg-min-size-set" ]] && continue
56
+ [[ " ${function} " == " asg-max-size-set" ]] && continue
45
57
echo " complete -F _bma_${type} s_completion ${function} "
46
58
done
47
59
done
You can’t perform that action at this time.
0 commit comments