|
| 1 | +#!/bin/bash |
| 2 | +set -euo pipefail |
| 3 | + |
| 4 | +copy_dm() { |
| 5 | + cat <<'EOF' | pbcopy |
| 6 | +Hey all - I am validating onboarding for my OpenCode/Codex setup and need 10-15 min testers. |
| 7 | +
|
| 8 | +Please run: |
| 9 | +1) git clone https://github.com/dtsong/my-opencode-codex-setup.git |
| 10 | +2) cd my-opencode-codex-setup |
| 11 | +3) ./install.sh --conflict-policy skip --profiles core,council-lite |
| 12 | +4) ./scripts/council-lite.sh run "Onboarding validation run" |
| 13 | +5) ./scripts/council-lite.sh list |
| 14 | +6) ./scripts/validate-council-lite.sh --latest |
| 15 | +7) ./install.sh --uninstall |
| 16 | +
|
| 17 | +Then share: |
| 18 | +- OS + shell |
| 19 | +- outcome: success | partial | fail |
| 20 | +- time-to-first-success (minutes) |
| 21 | +- any confusing steps |
| 22 | +
|
| 23 | +Best: open an issue with the "Onboarding feedback" template here: |
| 24 | +https://github.com/dtsong/my-opencode-codex-setup/issues/new/choose |
| 25 | +
|
| 26 | +Thank you. |
| 27 | +EOF |
| 28 | + echo "Copied DM template to clipboard." |
| 29 | +} |
| 30 | + |
| 31 | +copy_discord_pin() { |
| 32 | + cat <<'EOF' | pbcopy |
| 33 | +## Onboarding Validation Help Wanted (10-15 min) |
| 34 | +
|
| 35 | +I am collecting onboarding feedback for: |
| 36 | +https://github.com/dtsong/my-opencode-codex-setup |
| 37 | +
|
| 38 | +### Goal |
| 39 | +Verify a new user can go from clone to successful `council-lite` run quickly. |
| 40 | +
|
| 41 | +### Steps |
| 42 | +```bash |
| 43 | +git clone https://github.com/dtsong/my-opencode-codex-setup.git |
| 44 | +cd my-opencode-codex-setup |
| 45 | +./install.sh --conflict-policy skip --profiles core,council-lite |
| 46 | +./scripts/council-lite.sh run "Onboarding validation run" |
| 47 | +./scripts/council-lite.sh list |
| 48 | +./scripts/validate-council-lite.sh --latest |
| 49 | +./install.sh --uninstall |
| 50 | +``` |
| 51 | +
|
| 52 | +### Please report back |
| 53 | +- OS + shell |
| 54 | +- result (`success` | `partial` | `fail`) |
| 55 | +- time-to-first-success (minutes) |
| 56 | +- confusing or rough steps |
| 57 | +- suggested improvements |
| 58 | +
|
| 59 | +### Feedback channel (preferred) |
| 60 | +Open an issue using **Onboarding feedback**: |
| 61 | +https://github.com/dtsong/my-opencode-codex-setup/issues/new/choose |
| 62 | +
|
| 63 | +Thank you - this directly helps move council-lite from beta toward stable. |
| 64 | +EOF |
| 65 | + echo "Copied Discord pinned message template to clipboard." |
| 66 | +} |
| 67 | + |
| 68 | +usage() { |
| 69 | + cat <<'EOF' |
| 70 | +Usage: |
| 71 | + source scripts/share-templates.sh |
| 72 | + Then call one of: |
| 73 | + copy_dm |
| 74 | + copy_discord_pin |
| 75 | +
|
| 76 | + Or run directly: |
| 77 | + ./scripts/share-templates.sh --dm |
| 78 | + ./scripts/share-templates.sh --discord |
| 79 | +EOF |
| 80 | +} |
| 81 | + |
| 82 | +if [[ "${BASH_SOURCE[0]}" == "$0" ]]; then |
| 83 | + case "${1:-}" in |
| 84 | + --dm) |
| 85 | + copy_dm |
| 86 | + ;; |
| 87 | + --discord) |
| 88 | + copy_discord_pin |
| 89 | + ;; |
| 90 | + -h | --help | "") |
| 91 | + usage |
| 92 | + ;; |
| 93 | + *) |
| 94 | + echo "Unknown option: $1" |
| 95 | + usage |
| 96 | + exit 1 |
| 97 | + ;; |
| 98 | + esac |
| 99 | +fi |
0 commit comments