15 lines
361 B
Rust
15 lines
361 B
Rust
use radicle::profile::{Error, Profile};
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
let profile = match Profile::load() {
|
|
Ok(profile) => profile,
|
|
Err(Error::NotFound(_)) => Profile::init("radicle")?,
|
|
Err(err) => anyhow::bail!(err),
|
|
};
|
|
|
|
println!("id: {}", profile.id());
|
|
println!("home: {}", profile.home.display());
|
|
|
|
Ok(())
|
|
}
|