diff --git a/.gitignore b/.gitignore index 84b5e23..f2c39a2 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ Cargo.lock # for macOS .DS_Store + +.idea/ \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 9947005..57dbf5a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1464,7 +1464,7 @@ dependencies = [ [[package]] name = "spotify-cli" -version = "0.1.3" +version = "1.0.0" dependencies = [ "clap", "dirs", diff --git a/Cargo.toml b/Cargo.toml index f0e3c20..4aa9d49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "spotify-cli" -version = "0.1.3" +version = "1.0.0" edition = "2021" default-run = "spotify" diff --git a/run.md b/run.md index d8ef369..5e07824 100644 --- a/run.md +++ b/run.md @@ -1,12 +1,28 @@ -# RUN.md +# Installing and Running the `spotify-cli` tool -## Downloading and Installing the `spotify-cli` tool +## macOS -### Source +For macOS users, the `spotify-cli` tool can be easily installed using [Homebrew](https://brew.sh/) + +1. Install homebrew [here](https://brew.sh/) +2. Add the tap + + ```sh + brew tap kidskoding/spotify-cli + ``` + +3. Install the `spotify-cli` tool + + ```sh + brew install spotify-cli + ``` + +## Source Those who wish to build the `spotify-cli` tool from source can follow the instructions below 1. Since this CLI tool was built in Rust, you will need to install Rust [here](https://rustup.rs/) + 2. Clone the latest git repository: ```sh @@ -20,49 +36,11 @@ Those who wish to build the `spotify-cli` tool from source can follow the instru ```sh cd spotify-cli/ cargo install --path . - spotify ``` - Alternatively, build and run without adding to path: - - ```sh - cd spotify-cli/ - cargo run - ``` +### Run the command by type `spotify` in your terminal > [!NOTE] > This CLI program only works with specific Spotify accounts. You can login > to a testing account with the following credentials: > `Email="samplemail490@gmail.com"`, `password="samplepass!"` - -### macOS - -For macOS users, the `spotify-cli` tool can be easily installed using [Homebrew](https://brew.sh/) - -1. Install homebrew [here](https://brew.sh/) -2. Add the tap - - ```sh - brew tap kidskoding/spotify-cli - ``` - -3. Install the `spotify-cli` tool - - ```sh - brew install spotify-cli - ``` - -### Standalone Binary for Linux - -1. Download and Extract the standalone binary: - - ```sh - wget https://github.com/kidskoding/spotify-cli/releases/download/v0.1.3-alpha/spotify-cli.tar - tar -xvf spotify-cli.tar - ``` - -2. Move the executable to an executable binary path - - ```sh - sudo mv ./spotify /usr/local/bin/spotify - ``` diff --git a/src/playlist.rs b/src/playlist.rs index 79558f2..fa682cc 100644 --- a/src/playlist.rs +++ b/src/playlist.rs @@ -161,7 +161,7 @@ pub async fn remove(target_playlist: &str, track_id: &str) { .expect("couldn't remove song from playlist!"); println!( - "helpersuccessfully removed {} from {}", + "successfully removed {} from {}", Song::new(track_id).await.to_string(), playlist.name );