File tree Expand file tree Collapse file tree 6 files changed +61
-53
lines changed
Expand file tree Collapse file tree 6 files changed +61
-53
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ echo " \
6+ Git Repository: https://github.com/infrablocks/pkl_aws_secret_resource_reader"
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -euo pipefail
4+
5+ echo " \
6+ This plugin installs the pkl_aws_secret_resource_reader command which is a plugin to allow you to include secrets from AWS secrets manager into Pkl code."
Original file line number Diff line number Diff line change @@ -8,4 +8,46 @@ plugin_dir=$(dirname "$(dirname "$current_script_path")")
88# shellcheck source=./lib/utils.bash
99source " ${plugin_dir} /lib/utils.bash"
1010
11+ install_version () {
12+ local install_type=" $1 "
13+ local install_version=" $2 "
14+ local install_path=" $3 "
15+
16+ if [ " $install_type " == " ref" ]; then
17+ return 1
18+ fi
19+
20+ os_type=$( uname -s)
21+ case " $os_type " in
22+ Darwin)
23+ os_type=" macos"
24+ ;;
25+ Linux)
26+ os_type=" linux"
27+ ;;
28+ * )
29+ echo " Unsupported OS: $os_type "
30+ exit 1
31+ ;;
32+ esac
33+ arch_type=$( uname -m)
34+ case " $arch_type " in
35+ x86_64)
36+ arch_type=" amd64"
37+ ;;
38+ arm64)
39+ arch_type=" aarch64"
40+ ;;
41+ * )
42+ echo " Unsupported architecture: $arch_type "
43+ exit 1
44+ ;;
45+ esac
46+
47+ mkdir -p " $install_path /bin"
48+ curl -s -L -o " $install_path /bin/pkl_aws_secret_resource_reader" " https://github.com/infrablocks/pkl_aws_secret_resource_reader/releases/download/v${install_version} /pkl_aws_secret_resource_reader-${os_type} -${arch_type} "
49+ chmod +x " $install_path /bin/pkl_aws_secret_resource_reader"
50+ return 0
51+ }
52+
1153install_version " $ASDF_INSTALL_TYPE " " $ASDF_INSTALL_VERSION " " $ASDF_INSTALL_PATH "
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,4 +8,10 @@ plugin_dir=$(dirname "$(dirname "$current_script_path")")
88# shellcheck source=./lib/utils.bash
99source " ${plugin_dir} /lib/utils.bash"
1010
11- list_all_versions | sort_versions | xargs echo
11+ list_all_versions () {
12+ git ls-remote --tags --refs https://github.com/infrablocks/pkl_aws_secret_resource_reader.git |
13+ awk ' !/({})/ {print $2}' |
14+ cut -f3 -d/
15+ }
16+
17+ list_all_versions | grep -v " v0.0.0" | xargs echo
You can’t perform that action at this time.
0 commit comments