getmosaic 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/mosaic.sh +11 -1
- package/package.json +1 -1
package/bin/mosaic.sh
CHANGED
|
@@ -48,7 +48,17 @@ case "$COMMAND" in
|
|
|
48
48
|
echo " Opening https://connect-agg111s-projects.vercel.app in your browser..."
|
|
49
49
|
echo ""
|
|
50
50
|
open "https://connect-agg111s-projects.vercel.app" 2>/dev/null || xdg-open "https://connect-agg111s-projects.vercel.app" 2>/dev/null || true
|
|
51
|
-
echo "
|
|
51
|
+
echo " Authorize Mosaic in your Slack workspace, then paste the token below."
|
|
52
|
+
echo ""
|
|
53
|
+
printf " Slack bot token (xoxb-...): "
|
|
54
|
+
read -r SLACK_TOKEN
|
|
55
|
+
[ -z "$SLACK_TOKEN" ] && echo "Slack token cannot be empty." && exit 1
|
|
56
|
+
|
|
57
|
+
grep -v "^SLACK_BOT_TOKEN=" "$ENV_FILE" > "$ENV_FILE.tmp" && mv "$ENV_FILE.tmp" "$ENV_FILE"
|
|
58
|
+
echo "SLACK_BOT_TOKEN=$SLACK_TOKEN" >> "$ENV_FILE"
|
|
59
|
+
|
|
60
|
+
echo ""
|
|
61
|
+
echo " ✓ All set! Run:"
|
|
52
62
|
echo ""
|
|
53
63
|
echo " mosaic start"
|
|
54
64
|
echo ""
|
package/package.json
CHANGED