From ab7aa8292efd372d96f58b5613b6d3f32d729376 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Mon, 25 Jan 2016 20:35:16 +0100 Subject: [PATCH] fixing yasnippets. --- snippets/eshell-mode/aws-ec2-describe-instance-status | 2 +- snippets/eshell-mode/aws-ec2-get-dns-names | 2 +- snippets/eshell-mode/aws-ec2-get-instance-details | 2 +- snippets/eshell-mode/aws-ec2-instance-running | 2 +- snippets/eshell-mode/aws-ec2-start-stop-instance | 2 +- snippets/org-mode/srcsh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/snippets/eshell-mode/aws-ec2-describe-instance-status b/snippets/eshell-mode/aws-ec2-describe-instance-status index c2f54caf..bc09cd40 100644 --- a/snippets/eshell-mode/aws-ec2-describe-instance-status +++ b/snippets/eshell-mode/aws-ec2-describe-instance-status @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-dns-names b/snippets/eshell-mode/aws-ec2-get-dns-names index c604803a..fdc9456e 100644 --- a/snippets/eshell-mode/aws-ec2-get-dns-names +++ b/snippets/eshell-mode/aws-ec2-get-dns-names @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-get-instance-details b/snippets/eshell-mode/aws-ec2-get-instance-details index af3d6e34..808e4bda 100644 --- a/snippets/eshell-mode/aws-ec2-get-instance-details +++ b/snippets/eshell-mode/aws-ec2-get-instance-details @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-instance-running b/snippets/eshell-mode/aws-ec2-instance-running index 3b953aa3..efb8633f 100644 --- a/snippets/eshell-mode/aws-ec2-instance-running +++ b/snippets/eshell-mode/aws-ec2-instance-running @@ -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 diff --git a/snippets/eshell-mode/aws-ec2-start-stop-instance b/snippets/eshell-mode/aws-ec2-start-stop-instance index 7c63ed5e..194b4d59 100644 --- a/snippets/eshell-mode/aws-ec2-start-stop-instance +++ b/snippets/eshell-mode/aws-ec2-start-stop-instance @@ -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 diff --git a/snippets/org-mode/srcsh b/snippets/org-mode/srcsh index 93683143..011d3d0c 100644 --- a/snippets/org-mode/srcsh +++ b/snippets/org-mode/srcsh @@ -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 -- 2.47.3