* Initial plan * Consolidate mise tools installation and fix GitHub Copilot CLI package Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> * Revert copilot package changes and remove --jobs flag from mise install Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> * fix: permissions * Move GitHub CLI (gh) installation to mise Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: andrejusk <7396847+andrejusk@users.noreply.github.com> Co-authored-by: Andrejus <git@andrejus.uk>
21 lines
516 B
Bash
Executable File
21 lines
516 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Description:
|
|
# Install GitHub Copilot CLI (globally via npm).
|
|
#
|
|
|
|
if ! command -v npm &>/dev/null; then
|
|
log_warn "npm not found, skipping"
|
|
return 0
|
|
fi
|
|
|
|
# Install if not present
|
|
if ! command -v copilot &>/dev/null; then
|
|
log_info "Installing GitHub Copilot CLI..."
|
|
npm install -g @github/copilot --silent
|
|
fi
|
|
|
|
# Verify installation
|
|
log_info "GitHub Copilot CLI: $(copilot --version 2>&1 | head -1)"
|