mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
open
This commit is contained in:
parent
be5c84c5e3
commit
67c2b59639
4 changed files with 21 additions and 1 deletions
|
|
@ -99,6 +99,13 @@ async fn main() -> Result<()> {
|
|||
let cloud = get_by_filter(&mut docker, None, &config).await?;
|
||||
cloud.db.exec(&mut docker, &cloud.id).await?;
|
||||
}
|
||||
HazeCommand::Open => {
|
||||
let cloud = get_by_filter(&mut docker, None, &config).await?;
|
||||
match cloud.ip {
|
||||
Some(ip) => opener::open(format!("http://{}", ip))?,
|
||||
None => eprintln!("{} is not running", cloud.id),
|
||||
}
|
||||
}
|
||||
HazeCommand::Test => {
|
||||
todo!();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue