You've already forked AstralRinth
forked from didirus/AstralRinth
* Initial draft of profile metadata format * Remove records, add Clippy to Nix, fix Clippy error * Work on profile definition * BREAKING: Make global settings consistent with profile settings * Add builder methods & format * Integrate launching with profiles * Add profile loading * Launching via profile, API tweaks, and yak shaving * Incremental update, committing everything due to personal system maintainance * Prepare for review cycle * Remove reminents of experimental work * CLI: allow people to override the non-empty directory check * Fix mistake in previous commit * Handle trailing whitespace and newlines in prompts * Revamp prompt to use dialoguer and support defaults * Make requested changes
28 lines
634 B
Rust
28 lines
634 B
Rust
use std::io;
|
|
|
|
pub use meta::Metadata;
|
|
pub use profiles::{Profile, Profiles};
|
|
pub use settings::Settings;
|
|
|
|
mod meta;
|
|
pub mod profiles;
|
|
mod settings;
|
|
|
|
#[derive(thiserror::Error, Debug)]
|
|
pub enum DataError {
|
|
#[error("I/O error while reading data: {0}")]
|
|
IOError(#[from] io::Error),
|
|
|
|
#[error("Daedalus error: {0}")]
|
|
DaedalusError(#[from] daedalus::Error),
|
|
|
|
#[error("Data format error: {0}")]
|
|
FormatError(String),
|
|
|
|
#[error("Attempted to access {0} without initializing it!")]
|
|
InitializedError(String),
|
|
|
|
#[error("Error while serializing/deserializing data")]
|
|
SerdeError(#[from] serde_json::Error),
|
|
}
|