From fc5789e026473ea82237be847672ecb350e64479 Mon Sep 17 00:00:00 2001 From: tslil Date: Tue, 14 Jul 2026 20:22:56 +0100 Subject: license, simplify code, add README, lose "learner" naming --- src/main.rs | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index d16b50f..2a1f2c9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,26 @@ +/* mood --- A music player governed by your moods. + Copyright (C) 2026 tslil clingman + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +*/ + use std::{process::Command, process::exit}; mod albums; mod cli; mod config; -mod learner; +mod intuition; mod state; mod trajectory; @@ -44,12 +61,12 @@ fn main() { let action = action.unwrap(); match action { - Action::DumpLearner => { + Action::DumpIntuition => { let state = load_state_no_default(); println!( "{}", - state.dump_learner().unwrap_or_else(|e| { - eprintln!("Failed to serialize state (dump-learner): {e}"); + state.dump_intuition().unwrap_or_else(|e| { + eprintln!("Failed to serialise state (dump-intuition): {e}"); exit(1); }) ); @@ -60,7 +77,7 @@ fn main() { println!( "{}", state.dump_trajectory().unwrap_or_else(|e| { - eprintln!("Failed to serialize state (dump-trajectory): {e}"); + eprintln!("Failed to serialise state (dump-trajectory): {e}"); exit(1); }) ); -- cgit v1.2.3