@techgoblin/gobstack 0.4.4-beta.2 → 0.4.4-beta.3
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/goblin-init +6 -6
- package/package.json +1 -1
package/bin/goblin-init
CHANGED
|
@@ -220,7 +220,7 @@ CLASS_DEFAULT=1
|
|
|
220
220
|
if [ -z "$CLASS" ]; then
|
|
221
221
|
if [ "$TTY_IN" -eq 1 ]; then
|
|
222
222
|
q ""
|
|
223
|
-
q " $
|
|
223
|
+
q " ${C_MUTED}what kind of work does this repo do?$C_RESET"
|
|
224
224
|
q " $C_TEXT 1 ▸ app shipped features, PRs, review gates ${C_DIM}(class A)$C_RESET"
|
|
225
225
|
q " $C_TEXT 2 service backend jobs, config, unattended runs ${C_DIM}(class B)$C_RESET"
|
|
226
226
|
q " $C_TEXT 3 game playable builds, perf budgets ${C_DIM}(class C)$C_RESET"
|
|
@@ -276,7 +276,7 @@ DEF_EMAIL=$( cd "$TARGET" && git config user.email 2>/dev/null )
|
|
|
276
276
|
if [ -z "$BRANCH" ] || [ -z "$EMAIL" ]; then
|
|
277
277
|
if [ "$TTY_IN" -eq 1 ]; then
|
|
278
278
|
q ""
|
|
279
|
-
q " $
|
|
279
|
+
q " ${C_MUTED}the forge contract — the identity this repo commits with (CM-01)$C_RESET"
|
|
280
280
|
ask_value "default branch" "$DEF_BRANCH"; BRANCH="${BRANCH:-$REPLY}"
|
|
281
281
|
ask_value "owner email" "$DEF_EMAIL"; EMAIL="${EMAIL:-$REPLY}"
|
|
282
282
|
else
|
|
@@ -301,14 +301,14 @@ GATE_DEFAULT="bash tests/run-tests.sh"
|
|
|
301
301
|
if [ -z "$GATE" ]; then
|
|
302
302
|
if [ "$TTY_IN" -eq 1 ]; then
|
|
303
303
|
q ""
|
|
304
|
-
q " $
|
|
304
|
+
q " ${C_MUTED}one real command that must stay green — suggested for a bash suite:$C_RESET"
|
|
305
305
|
if [ -f "$TARGET/tests/run-tests.sh" ]; then
|
|
306
306
|
q " $C_DIM$GATE_DEFAULT$C_RESET"
|
|
307
307
|
ask_value "gate command" "$GATE_DEFAULT"; GATE="$REPLY"
|
|
308
308
|
else
|
|
309
309
|
ask_value "gate command" "true"; GATE="$REPLY"
|
|
310
310
|
if [ "$GATE" = "true" ]; then
|
|
311
|
-
q " $
|
|
311
|
+
q " ${C_YELLOW}no tests/run-tests.sh found — a placeholder gate is allowed but it proves nothing; replace it in .goblin/goblin.yaml$C_RESET"
|
|
312
312
|
Q_LINES=$((Q_LINES + 1))
|
|
313
313
|
fi
|
|
314
314
|
fi
|
|
@@ -355,14 +355,14 @@ EMIT_N=$(printf '%s' "$EMIT_SELECTED" | awk 'NF' | wc -l | tr -d '[:space:]')
|
|
|
355
355
|
|
|
356
356
|
if [ "$TTY_IN" -eq 1 ] && [ -z "$EMIT" ] && [ "$YES" -eq 0 ]; then
|
|
357
357
|
q ""
|
|
358
|
-
q " $
|
|
358
|
+
q " ${C_MUTED}emit now — the skills go into:$C_RESET"
|
|
359
359
|
for p in $PLATFORMS; do
|
|
360
360
|
hit=""
|
|
361
361
|
while IFS=$' ' read -r dp _a _b _c; do [ "$dp" = "$p" ] && hit=1; done <<< "$DET_ROWS"
|
|
362
362
|
[ -n "$hit" ] || continue
|
|
363
363
|
q " $C_GREEN✔$C_RESET $C_TEXT$p$C_RESET"
|
|
364
364
|
done
|
|
365
|
-
q " $
|
|
365
|
+
q " ${C_DIM}Enter = these; or type platform names to override$C_RESET"
|
|
366
366
|
printf ' '
|
|
367
367
|
read -r REPLY_EMIT
|
|
368
368
|
ASKED_ANY=1
|
package/package.json
CHANGED