Finish LogFile format and patch template/logfile.ron
This commit is contained in:
@@ -14,7 +14,10 @@ impl TryFrom<File> for LogFile {
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct GameRecord([Option<Period>; 4]);
|
||||
struct GameRecord {
|
||||
version: semver::Version,
|
||||
periods: Vec<Option<Period>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct Period {
|
||||
@@ -57,7 +60,7 @@ enum Down {
|
||||
Second,
|
||||
Third,
|
||||
Fourth,
|
||||
Pat,
|
||||
PointAfterTouchdown,
|
||||
}
|
||||
|
||||
impl Down {
|
||||
|
||||
@@ -12,7 +12,9 @@ struct Args {
|
||||
short,
|
||||
long,
|
||||
value_hint = clap::ValueHint::DirPath,
|
||||
default_value = std::env::current_dir().expect("Failed to get current working dir.").into_os_string()
|
||||
default_value = std::env::current_dir()
|
||||
.expect("Failed to get current working dir.")
|
||||
.into_os_string()
|
||||
)]
|
||||
logfile_path: PathBuf,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user