Improve the project structhure
This commit is contained in:
parent
c7be10cd61
commit
dd0c2a5d46
2 changed files with 7 additions and 6 deletions
|
@ -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));
|
|
@ -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 {
|
Loading…
Reference in a new issue