1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-10-01 08:44:09 +02:00

feat(start): Add --detach flag

This will create a dedicated worktree for the instance.

App listed to be enabled will also benefit from their own worktrees.

The worktree is cleanup when the instance is destroyed.
This commit is contained in:
Louis Chmn 2026-08-13 19:32:23 +02:00
commit 0e702f7b87
9 changed files with 339 additions and 27 deletions

View file

@ -89,6 +89,8 @@ fn subcommand_help(command: &dyn SubCommand) {
print!(" {}", "[database type]".green());
print!(" {}", "[services]".green());
print!(" {}", "[vX.Y.Z]".green());
print!(" {}", "[--name <name>]".green());
print!(" {}", "[--detach]".green());
}
let args = if let Some(args) = command.get_str("Args") {
@ -156,6 +158,17 @@ fn subcommand_help(command: &dyn SubCommand) {
service.get_documentation().unwrap_or_default(),
);
}
println!();
println!("{}", "Options:".yellow().bold());
println!(
" {} name the instance instead of generating a random name",
"--name <name>".blue()
);
println!(
" {} give the instance its own worktree of the sources",
"--detach".blue()
);
}
if let Some(sub_commands) = command.sub_commands() {