spocon

command module
v0.0.0-...-44869a7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2020 License: MIT Imports: 1 Imported by: 0

README

spocon

Dead simply spotify cli controller

Why

I just wanted to controll playback from cli

Setup

  1. Please go to here to create Client ID and Client Secret
  2. Please set redirect uri to http://127.0.0.1:14565/oauth/callback
  3. Please set these values like below.
export SPOTIFY_ID=your_client_id
export SPOTIFY_KEY=your_client_key
  1. 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

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL