Skip to content

Commit c875bd0

Browse files
authored
Merge pull request #217 from github/update-cli
Update with check changes
2 parents 542751f + 736e282 commit c875bd0

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The `specify` command supports the following options:
7474
| Command | Description |
7575
|-------------|----------------------------------------------------------------|
7676
| `init` | Initialize a new Specify project from the latest template |
77-
| `check` | Check for installed tools (`git`, `claude`, `gemini`) |
77+
| `check` | Check for installed tools (`git`, `claude`, `gemini`, `code`/`code-insiders`, `cursor-agent`) |
7878

7979
### `specify init` Arguments & Options
8080

src/specify_cli/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -825,8 +825,7 @@ def init(
825825
if not check_tool("gemini", "Install from: https://github.com/google-gemini/gemini-cli"):
826826
console.print("[red]Error:[/red] Gemini CLI is required for Gemini projects")
827827
agent_tool_missing = True
828-
# GitHub Copilot check is not needed as it's typically available in supported IDEs
829-
828+
830829
if agent_tool_missing:
831830
console.print("\n[red]Required AI tool is missing![/red]")
832831
console.print("[yellow]Tip:[/yellow] Use --ignore-agent-tools to skip this check")
@@ -976,11 +975,18 @@ def check():
976975
tracker.add("git", "Git version control")
977976
tracker.add("claude", "Claude Code CLI")
978977
tracker.add("gemini", "Gemini CLI")
978+
tracker.add("code", "VS Code (for GitHub Copilot)")
979+
tracker.add("cursor-agent", "Cursor IDE agent (optional)")
979980

980981
# Check each tool
981982
git_ok = check_tool_for_tracker("git", "https://git-scm.com/downloads", tracker)
982983
claude_ok = check_tool_for_tracker("claude", "https://docs.anthropic.com/en/docs/claude-code/setup", tracker)
983984
gemini_ok = check_tool_for_tracker("gemini", "https://github.com/google-gemini/gemini-cli", tracker)
985+
# Check for VS Code (code or code-insiders)
986+
code_ok = check_tool_for_tracker("code", "https://code.visualstudio.com/", tracker)
987+
if not code_ok:
988+
code_ok = check_tool_for_tracker("code-insiders", "https://code.visualstudio.com/insiders/", tracker)
989+
cursor_ok = check_tool_for_tracker("cursor-agent", "https://cursor.sh/", tracker)
984990

985991
# Render the final tree
986992
console.print(tracker.render())

0 commit comments

Comments
 (0)