mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-08 03:10:26 +00:00
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:
parent
3c5d8ff3e7
commit
c475b0a25e
1 changed files with 15 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue