Add warning when no git remote is configured during arc init

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Bryan Helmkamp 2026-03-11 09:40:50 -04:00
parent 3c5d8ff3e7
commit c475b0a25e

View file

@ -116,7 +116,21 @@ async fn check_github_app_installation() {
.output()
{
Ok(o) if o.status.success() => o,
_ => return, // No origin remote — skip silently
_ => {
let yellow = console::Style::new().yellow();
let dim = console::Style::new().dim();
eprintln!(
"\n {} No git remote found — skipping GitHub App check",
yellow.apply_to("!")
);
eprintln!(
" {}",
dim.apply_to(
"Run `git remote add origin <url>` then `arc install` to set up the GitHub App"
)
);
return;
}
};
let remote_url = match String::from_utf8(output.stdout) {