diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 27 |
1 files changed, 22 insertions, 5 deletions
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 <https://www.gnu.org/licenses/>. +*/ + 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); }) ); |
