Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/specify_cli/integrations/copilot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
from ..manifest import IntegrationManifest


def _copilot_executable() -> str:
"""Return the executable name for Copilot CLI on this platform.

On Windows, subprocess invocation is reliable with `copilot.cmd`.
"""
if os.name == "nt":
return "copilot.cmd"
return "copilot"
Comment thread
LahkLeKey marked this conversation as resolved.


def _allow_all() -> bool:
"""Return True if the Copilot CLI should run with full permissions.

Expand Down