1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

better ids

This commit is contained in:
Robin Appelman 2021-03-14 16:37:57 +01:00
commit 4ad207f58d
3 changed files with 71 additions and 43 deletions

View file

@ -9,7 +9,7 @@ use bollard::Docker;
use camino::{Utf8Path, Utf8PathBuf};
use color_eyre::{eyre::WrapErr, Report, Result};
use futures_util::stream::StreamExt;
use min_id::generate_id;
use petname::petname;
use std::collections::HashMap;
use std::fmt::Display;
use std::fs;
@ -117,7 +117,7 @@ impl Cloud {
options: CloudOptions,
config: &HazeConfig,
) -> Result<Self> {
let id = format!("haze-{}", generate_id());
let id = format!("haze-{}", petname(2, "-"));
let workdir = setup_workdir(&config.work_dir, &id)
.await