|
@@ -13,9 +13,12 @@ local opts=$(cat << EOF
|
|
|
cdk :: . ______________
|
|
cdk :: . ______________
|
|
|
cdk_init :: cdk init app --language typescript
|
|
cdk_init :: cdk init app --language typescript
|
|
|
cdk_boot_def :: cdk bootstrap
|
|
cdk_boot_def :: cdk bootstrap
|
|
|
-cdk_boot_nodef :x: $(printf "cdk bootstrap --qualifier '%s'" "${1}" )
|
|
|
|
|
-cdk_boot_imprt :: cdk bootstrap aws://%s/%s
|
|
|
|
|
-cdk_synth :: cdk synth
|
|
|
|
|
|
|
+cdk_boot_nodef :x: $(printf "cdk bootstrap --qualifier '%s'" "${1}" )
|
|
|
|
|
+cdk_boot_imprt :: cdk bootstrap aws://%s/%s
|
|
|
|
|
+cdk_synth :: NO_COLOR=1 cdk synth 2>&1 | tee cdk_synth.txt
|
|
|
|
|
+cdk_synth_sgl :: NO_COLOR=1 cdk synth '%s' 2>&1 | tee cdk_synth.txt
|
|
|
|
|
+cdk_diff :: NO_COLOR=1 cdk diff 2>&1 | tee cdk_diff.txt
|
|
|
|
|
+cdk_diff_sgl :: NO_COLOR=1 cdk diff '%s' 2>&1 | tee cdk_diff.txt
|
|
|
npm :: . ______________
|
|
npm :: . ______________
|
|
|
npm_inst :: npm install
|
|
npm_inst :: npm install
|
|
|
npm_inst :: npx tsc
|
|
npm_inst :: npx tsc
|
|
@@ -24,6 +27,13 @@ crs_link :: $(printf "rm -f ~/dev/cursor/* ; ln -s '%s' '%s/dev/cursor/
|
|
|
EOF
|
|
EOF
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
+local stages=$(cat << EOF
|
|
|
|
|
+*-DEV-CLD
|
|
|
|
|
+EOF
|
|
|
|
|
+)
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
local selOpt=$(echo "${opts}" | grep -vE '^##' | nl -i1 -n'rz' -v0 -w3 | sort -ru | fzf)
|
|
local selOpt=$(echo "${opts}" | grep -vE '^##' | nl -i1 -n'rz' -v0 -w3 | sort -ru | fzf)
|
|
|
|
|
|
|
|
if [ "${selOpt}" == "" ]; then
|
|
if [ "${selOpt}" == "" ]; then
|
|
@@ -45,10 +55,13 @@ EOF
|
|
|
cdk_boot_imprt)
|
|
cdk_boot_imprt)
|
|
|
selOpt=$(printf "${selOpt}" "$(aws sts get-caller-identity --query "Account" --output text)" "$(aws configure get region)")
|
|
selOpt=$(printf "${selOpt}" "$(aws sts get-caller-identity --query "Account" --output text)" "$(aws configure get region)")
|
|
|
;;
|
|
;;
|
|
|
|
|
+ cdk_synth_sgl|cdk_diff_sgl)
|
|
|
|
|
+ selOpt=$(printf "${selOpt}" "$(echo "${stages}" | grep -vE '^##' | sort -ru | fzf)")
|
|
|
|
|
+ ;;
|
|
|
*)
|
|
*)
|
|
|
;;
|
|
;;
|
|
|
esac
|
|
esac
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
echo ">>>>>>> ${selOpt}"
|
|
echo ">>>>>>> ${selOpt}"
|
|
|
history -s "${selOpt}"
|
|
history -s "${selOpt}"
|