Skip to content

Commit 9d747a3

Browse files
committed
Improve instruction clarity
1 parent 0ae2fce commit 9d747a3

File tree

1 file changed

+8
-3
lines changed
  • rs/crates/rq-cli/src

1 file changed

+8
-3
lines changed

rs/crates/rq-cli/src/ui.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,12 @@ async fn new_quest_ui(cwd: &Path) -> Result<()> {
9191
let quest = spinner("Creating quest...", quest_fut).await?;
9292

9393
println!(
94-
"\nQuest created in directory: {}\n\nYou should open that directory in your preferred code editor, then start the quest by following the directions below.",
95-
quest.dir.display()
94+
"\nQuest created in directory: {}\n\nYou should open that directory in your preferred code editor, then start the quest by running:\n\n$ cd {}\n$ repo-quest",
95+
quest.dir.display(),
96+
quest.dir.file_name().unwrap().to_string_lossy()
9697
);
9798

98-
run_quest_ui(quest).await
99+
Ok(())
99100
}
100101

101102
async fn run_quest_ui(quest: Quest) -> Result<()> {
@@ -145,7 +146,11 @@ async fn run_quest_ui(quest: Quest) -> Result<()> {
145146
println!("Issue: {}", issue.html_url);
146147
if let Some(pr) = pr {
147148
println!("Pull request: {}", pr.html_url.unwrap());
149+
println!("Read the issue and pull request. Merge the PR, then start coding.")
150+
} else {
151+
println!("Read the issue and then start coding.")
148152
}
153+
println!("If you finish or if you need help, re-run repo-quest in this directory.")
149154
}
150155
Some("Exit") | None => return Ok(()),
151156
_ => unreachable!(),

0 commit comments

Comments
 (0)