diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 8bb206b..92a9e54 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ /result /result-bin /.direnv -/.envrc diff --git a/slack.sh b/slack.sh new file mode 100755 index 0000000..b3a26b0 --- /dev/null +++ b/slack.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh +set -e + +export SLACK_URL +export SLACK_API_TOKEN +export SLACK_CHANNEL + +SLACK_URL="$(pass show ea/slack/url)" +SLACK_API_TOKEN="$(pass show ea/slack/token)" +SLACK_CHANNEL="$(pass show ea/slack/token)" + +exec "$@"