command
module
Version:
v0.0.0-...-44869a7
Opens a new window with list of versions in this module.
Published: May 22, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
spocon
Dead simply spotify cli controller
Why
I just wanted to controll playback from cli
Setup
- Please go to here to create Client ID and Client Secret
- Please set redirect uri to http://127.0.0.1:14565/oauth/callback
- Please set these values like below.
export SPOTIFY_ID=your_client_id
export SPOTIFY_KEY=your_client_key
- Please run the commands below
go get -u github.com/justym/spocon
cd $GOPATH/src/github.com/justym/spocon
go build
If you are in a trouble, please see caution part in this README
Usage
spocon [sub cmds]
Sub cmmands list
- start
- start command can play/resume your spotify playback
- 🚧 Mainly, please use this to resume. Now: play function is something wrong 🚧
- pause
- pause command can pasue your spotify playback
- next
- next command can listen next song
- prev
- prev command can listen previous song
- status
- status command can get your currently playback song name
- help
- help command can see short help message
Built with
- github.com/spf13/cobra
- github.com/nmrshll/oauth2-noserver
Caution
- This cli-app uses Spotify Web API. So, please check their web page carefully.
- This app uses that Web API through Authorization code flow (OAuth2.0).
- This cli-app uses this package github.com/nmrshll/oauth2-noserver to do authentication rapidly. So please see this package carefully too.
Welcome
- Code review
- Issue
- Pull Request
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.