Skip to content

Commit

Permalink
spotify-cli 1.0.0 release!
Browse files Browse the repository at this point in the history
Added .idea/ to .gitignore
  • Loading branch information
kidskoding committed Dec 13, 2024
1 parent a62b127 commit e95ab71
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 45 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ Cargo.lock

# for macOS
.DS_Store

.idea/
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "spotify-cli"
version = "0.1.3"
version = "1.0.0"
edition = "2021"
default-run = "spotify"

Expand Down
62 changes: 20 additions & 42 deletions run.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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="[email protected]"`, `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
```
2 changes: 1 addition & 1 deletion src/playlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit e95ab71

Please sign in to comment.