Kaynağa Gözat

BAK ##2026-05-12T11:15:45+0200

Diller, Jan 1 ay önce
ebeveyn
işleme
67bf4f9441
1 değiştirilmiş dosya ile 17 ekleme ve 4 silme
  1. 17 4
      clouddk

+ 17 - 4
clouddk

@@ -13,9 +13,12 @@ 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       ::   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_inst        ::   npm install
 npm_inst        ::   npx tsc
@@ -24,6 +27,13 @@ crs_link        ::   $(printf "rm -f ~/dev/cursor/* ; ln -s '%s' '%s/dev/cursor/
 EOF
 )
 
+local stages=$(cat << EOF
+*-DEV-CLD
+EOF
+)
+
+
+
   local selOpt=$(echo "${opts}" | grep -vE '^##' | nl -i1 -n'rz' -v0 -w3 | sort -ru | fzf)
 
   if [ "${selOpt}" == "" ]; then
@@ -45,10 +55,13 @@ EOF
     cdk_boot_imprt)
       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
-  
+
 
   echo ">>>>>>> ${selOpt}"
   history -s "${selOpt}"