|
@@ -10,20 +10,21 @@ alias cdkw='cdk watch'
|
|
|
|
|
|
|
|
function ch(){
|
|
function ch(){
|
|
|
local opts=$(cat << EOF
|
|
local opts=$(cat << EOF
|
|
|
-cdk :: . ______________
|
|
|
|
|
-cdk_init :: cdk init app --language typescript
|
|
|
|
|
-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 :: 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_inst :: npm install
|
|
|
|
|
-npm_inst :: npx tsc
|
|
|
|
|
-crs :: . ______________
|
|
|
|
|
-crs_link :: $(printf "rm -f ~/dev/cursor/* ; ln -s '%s' '%s/dev/cursor/cdk_stuff_%s'" "${PWD}" "${HOME}" "$(pwd | sed -E 's|(.*)/head/(.*)|\1|g' | rev | cut -d '/' -f 1 | rev)")
|
|
|
|
|
|
|
+cdk :: . ______________
|
|
|
|
|
+cdk_init :: cdk init app --language typescript
|
|
|
|
|
+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 :: 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_sglstg :: NO_COLOR=1 cdk diff '%s' 2>&1 | tee cdk_diff.txt
|
|
|
|
|
+cdk_diff_sglstk :: NO_COLOR=1 cdk diff '%s' 2>&1 | tee cdk_diff.txt
|
|
|
|
|
+npm :: . ______________
|
|
|
|
|
+npm_inst :: npm install
|
|
|
|
|
+npm_inst :: npx tsc
|
|
|
|
|
+crs :: . ______________
|
|
|
|
|
+crs_link :: $(printf "rm -f ~/dev/cursor/* ; ln -s '%s' '%s/dev/cursor/cdk_stuff_%s'" "${PWD}" "${HOME}" "$(pwd | sed -E 's|(.*)/head/(.*)|\1|g' | rev | cut -d '/' -f 1 | rev)")
|
|
|
EOF
|
|
EOF
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -55,9 +56,12 @@ 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)
|
|
|
|
|
|
|
+ cdk_synth_sgl|cdk_diff_sglstg)
|
|
|
selOpt=$(printf "${selOpt}" "$(echo "${stages}" | grep -vE '^##' | sort -ru | fzf)")
|
|
selOpt=$(printf "${selOpt}" "$(echo "${stages}" | grep -vE '^##' | sort -ru | fzf)")
|
|
|
;;
|
|
;;
|
|
|
|
|
+ cdk_diff_sglstk)
|
|
|
|
|
+ selOpt=$(printf "${selOpt}" "$(printf "$(cdk ls)" | grep -vE '^Now using' | fzf)")
|
|
|
|
|
+ ;;
|
|
|
*)
|
|
*)
|
|
|
;;
|
|
;;
|
|
|
esac
|
|
esac
|