Skip to content

Commit

Permalink
Snippet cleanup (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
topher200 authored Feb 11, 2024
1 parent 9816e2d commit 276186c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions files/.config/pet/snippet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@
command = "echo $?"
output = ""

[[snippets]]
description = "set local heroku environment vars for release deployment"
command = "$ PROD_SHA=$(git rev-parse --short=9 $(heroku releases --app memfault-prod | grep Deploy | head -n 1 | perl -wne '/Deploy (\\S+)/ and print $1')) && STAGING_SHA=$(git rev-parse --short=9 $(heroku releases --app memfault-staging | grep Deploy | head -n 1 | perl -wne '/Deploy (\\S+)/ and print $1')) && echo 'PROD_SHA : '$PROD_SHA && echo 'STAGING_SHA: '$STAGING_SHA"
output = ""

[[snippets]]
description = "run terraform validate in all subdirectories"
command = "find . -type d -execdir sh -c \"pwd && terraform init && terraform validate\" \\;"
Expand Down Expand Up @@ -260,7 +255,7 @@

[[snippets]]
description = "get all commits / PRs which are in master but not yet released to prod"
command = "git log --oneline --no-decorate $(inv sheriff.release-current --app memfault-prod)..origin/master"
command = "git log --oneline --no-decorate $(aws-vault exec memfault-prod -- inv sheriff.release-current)..origin/master"
output = ""

[[snippets]]
Expand Down Expand Up @@ -290,5 +285,10 @@

[[snippets]]
description = "status of all celery queues rabbitmq env vars"
command = "inv deploy.env-var-get --app memfault-prod --vars CELERY_WORKER_S_QUEUE,CELERY_WORKER_L_QUEUE,CELERY_WORKER_BEE_QUEUE"
command = "aws-vault exec memfault-prod -- inv deploy.env-var-get --vars CELERY_WORKER_S_QUEUE,CELERY_WORKER_L_QUEUE,CELERY_WORKER_BEE_QUEUE"
output = ""

[[snippets]]
description = "copy github url of current pr"
command = "gh pr view --json url --jq .url | tee >(xsel -b)"
output = ""

0 comments on commit 276186c

Please sign in to comment.