Skip to content

Commit 0bfa04f

Browse files
committed
[update] - add menu search when working with codebuild
1 parent f74a5d5 commit 0bfa04f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

services/codebuild.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ aws_codebuild_list() {
66
}
77
aws_codebuild_get_latest_build() {
88
aws_codebuild_project_name=$1
9-
aws codebuild batch-get-builds --ids $(aws codebuild list-builds-for-project --project-name $aws_codebuild_project_name --query "*[] | [1]" | awk -F '"' '{print $2}')
9+
echo Get the latest build of project ${aws_codebuild_project_name:?"aws_codebuild_project_name is unset or empty"}
10+
aws codebuild batch-get-builds --ids $(aws codebuild list-builds-for-project --project-name $aws_codebuild_project_name --query "*[] | [1]" --output text)
1011
}
1112

1213
aws_codebuild_get_latest_build_with_hint() {
1314
echo "List codebuilds"
14-
aws codebuild list-projects
15-
echo "Your codebuild >"
16-
read aws_codebuild_project_name
17-
aws_codebuild_get_latest_build $aws_codebuild_project_name
15+
# echo "Your codebuild >"
16+
# read aws_codebuild_project_name
17+
aws_codebuild_get_latest_build $(echo "$(peco_aws_codebuild_list)" | peco)
1818

1919
}
2020

@@ -26,10 +26,10 @@ aws_codebuild_start() {
2626

2727
aws_codebuild_start_with_hint() {
2828
echo "List codebuilds"
29-
aws codebuild list-projects
30-
echo "Your codebuild >"
31-
read aws_codebuild_project_name
32-
aws_codebuild_start $aws_codebuild_project_name
29+
# aws codebuild list-projects
30+
# echo "Your codebuild >"
31+
# read aws_codebuild_project_name
32+
aws_codebuild_start $(echo "$(peco_aws_codebuild_list)" | peco)
3333

3434
}
3535

0 commit comments

Comments
 (0)