display hyperlinks

This commit is contained in:
Jana Dönszelmann 2026-02-24 23:16:33 +01:00
parent ae5ce58eec
commit f3bc16b3c5
No known key found for this signature in database
6 changed files with 93 additions and 7 deletions

View file

@ -49,6 +49,11 @@ struct Args {
#[arg(long = "logs-dir")]
logs_dir: PathBuf,
/// Path where the compiler source code lives, for links in the TUI to work.
#[arg(global = true)]
#[arg(long = "compiler-root")]
compiler_root: Option<PathBuf>,
#[arg(trailing_var_arg = true)]
#[arg(allow_hyphen_values = true)]
#[arg(global = true)]
@ -60,11 +65,12 @@ fn main() {
preset,
logs_dir,
rest,
compiler_root,
} = Args::parse();
let rustc_log = match preset {
Preset::Show => {
tui::run(logs_dir);
tui::run(logs_dir, compiler_root);
exit(0);
}
Preset::Types => {