Prechádzať zdrojové kódy

BAK ##2026-05-12T13:04:15+0200

Diller, Jan 1 mesiac pred
rodič
commit
2f96e3f87c
1 zmenil súbory, kde vykonal 19 pridanie a 15 odobranie
  1. 19 15
      clouddk

+ 19 - 15
clouddk

@@ -10,20 +10,21 @@ alias  cdkw='cdk watch'
 
 function ch(){
 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
 )
 
@@ -55,9 +56,12 @@ 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)
+    cdk_synth_sgl|cdk_diff_sglstg)
       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