aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
blob: d472b2d4660eeb39c905843c02318d494681f251 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * This file is a part of RSPlayer
 * Licensed under the GPL-3.0 License
 * Copyright (C) 2026 Salmonik @ salmonik@tuta.io
 * https://codeberg.org/salmonik/RSPlayer
*/

mod audio;
mod cli;
mod config;
mod daemon;
mod database;
mod notification;
mod playback;
mod queue;
mod scrobbler;

use clap::Parser;
use cli::Cli;
pub use rsp::debug_eprintln;

fn main() {
    let cli = Cli::parse();
    if let Err(e) = cli.run() {
        eprintln!("Error: {}", e);
        std::process::exit(1);
    }
}