mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-04-19 00:39:48 +00:00
docs: add gh star command fallback
This commit is contained in:
@@ -76,7 +76,11 @@ Ask the user: "Would you like to star the repository to support the project?"
|
|||||||
|
|
||||||
Only if they explicitly agree, run:
|
Only if they explicitly agree, run:
|
||||||
```bash
|
```bash
|
||||||
gh repo star jarrodwatts/claude-hud
|
if gh help repo 2>/dev/null | grep -q "star:"; then
|
||||||
|
gh repo star jarrodwatts/claude-hud
|
||||||
|
else
|
||||||
|
gh api -X PUT /user/starred/jarrodwatts/claude-hud
|
||||||
|
fi
|
||||||
```
|
```
|
||||||
|
|
||||||
Never run this automatically without user consent.
|
Never run this automatically without user consent.
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ Use AskUserQuestion:
|
|||||||
- Question: "Setup complete! The HUD should appear below your input field. Is it working?"
|
- Question: "Setup complete! The HUD should appear below your input field. Is it working?"
|
||||||
- Options: "Yes, it's working" / "No, something's wrong"
|
- Options: "Yes, it's working" / "No, something's wrong"
|
||||||
|
|
||||||
**If yes**: Ask the user if they'd like to ⭐ star the claude-hud repository on GitHub to support the project. If they agree and `gh` CLI is available, run: `gh repo star jarrodwatts/claude-hud`. Only run the star command if they explicitly say yes.
|
**If yes**: Ask the user if they'd like to ⭐ star the claude-hud repository on GitHub to support the project. If they agree and `gh` CLI is available, first check whether their `gh` version supports `gh repo star`. If it does, run `gh repo star jarrodwatts/claude-hud`. Otherwise fall back to `gh api -X PUT /user/starred/jarrodwatts/claude-hud`. Only run the star command if they explicitly say yes.
|
||||||
|
|
||||||
**If no**: Debug systematically:
|
**If no**: Debug systematically:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user