Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

endsong path as argument? #12

Open
fsktom opened this issue Mar 10, 2023 · 1 comment
Open

endsong path as argument? #12

fsktom opened this issue Mar 10, 2023 · 1 comment
Assignees
Labels
cli Regarding `endsong_ui` crate enhancement New feature or request

Comments

@fsktom
Copy link
Owner

fsktom commented Mar 10, 2023

// this is only temporary -> later on these files should be added by CLI args
// or both options!
// benchmark! =>
// 1) paths as CLI args
// 2) paths as part of compiled source code!
// different root path depending on my OS
let root = match std::env::consts::OS {
"windows" => "E:\\SPOTIFY DATA\\my_spotify_data 2021-07\\MyData\\",
"macos" => "/Users/filip/Other/Endsong/",
_ => "/home/filip/Other/SpotifyData/2022-06/",
};
let paths: Vec<String> = vec![
format!("{root}endsong_0.json"),
// format!("{root}endsong_1.json"),
// format!("{root}endsong_2.json"),
// format!("{root}endsong_3.json"),
// format!("{root}endsong_4.json"),
// format!("{root}endsong_5.json"),
// format!("{root}endsong_6.json"),
// format!("{root}endsong_7.json"),
];

@fsktom fsktom self-assigned this Mar 10, 2023
@fsktom fsktom added the enhancement New feature or request label Mar 10, 2023
@fsktom fsktom added the cli Regarding `endsong_ui` crate label Jul 27, 2023
@fsktom
Copy link
Owner Author

fsktom commented Aug 18, 2023

Maybe use https://github.com/clap-rs/clap for arguments.

With additional arguments for SongEntries::filter and SongEntries::sum_different_capitalization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Regarding `endsong_ui` crate enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant