Improve the project structhure

This commit is contained in:
Anas Elgarhy 2023-02-12 21:03:17 +02:00
parent c7be10cd61
commit dd0c2a5d46
No known key found for this signature in database
GPG key ID: 0501802A1D496528
2 changed files with 7 additions and 6 deletions

View file

@ -1,12 +1,9 @@
#![feature(assert_matches)] #![feature(assert_matches)]
mod arguments;
mod cmus;
mod utils;
use crate::cmus::query::CmusQueryResponse;
use clap::Parser; use clap::Parser;
use cmus_notify::{arguments, cmus::{self, CmusError, query::CmusQueryResponse}};
macro_rules! sleep { macro_rules! sleep {
($time: expr) => { ($time: expr) => {
std::thread::sleep(std::time::Duration::from_millis($time)); std::thread::sleep(std::time::Duration::from_millis($time));

View file

@ -1,6 +1,9 @@
use crate::cmus; #![feature(assert_matches)]
use std::path::Path; use std::path::Path;
pub mod cmus;
pub mod arguments;
/// Extracts the first embedded picture from an ID3 tag of an Audio file. /// Extracts the first embedded picture from an ID3 tag of an Audio file.
/// ///
@ -16,6 +19,7 @@ use std::path::Path;
/// # Example /// # Example
/// ///
/// ``` /// ```
/// # use cmus_notify::get_embedded_art;
/// let result = get_embedded_art("/path/to/track.mp3"); /// let result = get_embedded_art("/path/to/track.mp3");
/// ///
/// match result { /// match result {