]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
fixing yasnippets.
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 25 Jan 2016 19:35:16 +0000 (20:35 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 25 Jan 2016 19:35:16 +0000 (20:35 +0100)
snippets/eshell-mode/aws-ec2-describe-instance-status
snippets/eshell-mode/aws-ec2-get-dns-names
snippets/eshell-mode/aws-ec2-get-instance-details
snippets/eshell-mode/aws-ec2-instance-running
snippets/eshell-mode/aws-ec2-start-stop-instance
snippets/org-mode/srcsh

index c2f54caf5d429a726c91e56c7d1be9972fdd4f6f..bc09cd40ea87ac578d71912fb190c26d3cf99be7 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-describe-instance-status
 # key: aws-ec2-describe-instance-status
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-status --instance-ids ${2:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instance-status --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
index c604803aaafb9ce15e86aa6e0dc94d1a86010373..fdc9456e1f28fed1c0cdffa72a0308ef26638669 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-dns-names
 # key: aws-ec2-get-dns-names
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --filters "Name=tag:Name,Values=$2" --query "Reservations[].Instances[?State.Name=='running'].[InstanceId, PublicDnsName]" --output ${3:$$(yas-choose-value '("table" "text" "json"))} $0
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --filters "Name=tag:Name,Values=$4" --query "Reservations[].Instances[?State.Name=='running'].[InstanceId, PublicDnsName]" --output ${5:$$(yas-choose-value '("table" "text" "json"))} $0
index af3d6e345a8538654ffdccb7c4a874202b510a23..808e4bdaed2b158760ac1dc7ad1af68c2ca9ebde 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-get-instance-details
 # key: aws-ec2-get-instance-details
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids ${2:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids ${4:`(yank)`} $0
\ No newline at end of file
index 3b953aa31ef51e10fce15c8d6755d6de10822551..efb8633f0b89f66084055a8473cabadc382dcd31 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-instance-running
 # key: aws-ec2-instance-running
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids $2 --query "Reservations[].Instances[].[InstanceId, State.Name]" --output ${3:$$(yas-choose-value '("table" "text" "json"))} $0
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 describe-instances --instance-ids $4 --query "Reservations[].Instances[].[InstanceId, State.Name]" --output ${5:$$(yas-choose-value '("table" "text" "json"))} $0
index 7c63ed5ecaa53fb5bf18f6a89be6e0779ccfac63..194b4d59f9a1896290480024f06be6df46e47a7a 100644 (file)
@@ -2,4 +2,4 @@
 # name: aws-ec2-start-stop-instance
 # key: aws-ec2-start_stop-instance
 # --
-aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${2:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${3:`(yank)`} $0
\ No newline at end of file
+aws --profile=${1:$$(yas-choose-value '("prod" "test"))} ${2:--region=${3:$$(yas-choose-value bba-aws-regions)}} ec2 ${4:$$(yas-choose-value '("start-instances" "stop-instances"))} --instance-ids ${5:`(yank)`} $0
\ No newline at end of file
index 93683143f6273aacbc11d97bc3fc431c84bfda6e..011d3d0c57d359d475653d6172095240371fc5c6 100644 (file)
@@ -4,6 +4,6 @@
 # If you want to reference the output in other src blocks you need a name.
 # --
 ${1:#+NAME: $2}
-#+BEGIN_SRC sh :cache ${3:$$(yas-choose-value '("yes" "no"))} :results ${4:$$(yas-choose-value '("table" "list"))}
+#+BEGIN_SRC sh ${3::session ${4:client}} :cache ${5:$$(yas-choose-value '("yes" "no"))} :results ${6:$$(yas-choose-value '("table" "list" "verbatim drawer"))}
 $0
 #+END_SRC
\ No newline at end of file