ersel / spotify-cli-mac

🎶 A nodejs app to control Spotify without leaving your terminal. 🎶
MIT License
178 stars 28 forks source link

Separate commands section in one separated module #18

Closed gabrielsclimaco closed 6 years ago

gabrielsclimaco commented 6 years ago

closes #1

ersel commented 6 years ago

Hi @gabrielsclimaco ,

This commit breaks the app, because SearchOptions array is not defined.

My intention with this refactor was to pull out action sections of command to a seperate module themselves.

So index.js would contain command definitions but the implementation would live in a actions.js module. Hope that makes sense.

Feel free to send another PR. I am closing this for the time being.