Comments (5)
Sounds good - how would you envisage it working, API-wise?
from rapgenius.
I was just going to add a bin file, then make a cli.rb, which calls the API according to ARGV
given?
Rough example:
rapgenius song Nas-one-mic-lyrics
cli.rb
if ARGV[0] == song
song = RapGenius::Song.find(ARGV[1])
puts song
end
Or something of that nature? There's a lot of pretty good CLI middleware, like thor or highline, but I'd rather keep it simple and just take the ARGV for now.
from rapgenius.
Sounds cool to me - go for it.
I'd be tempted to do some meta-programming and use ARGV[0] to find a class, call the find method on it with ARGV[1] as the parameter and have a cli_presenter
method which defines what we output.
If you have an alternative idea, go for it though!
from rapgenius.
@timrogers This would be nice. I can implement this if you're still interested!
btw, awesome gem! 👍
from rapgenius.
Go for it - and thank you!
On Sat, Feb 15, 2014 at 5:16 AM, Jonah Ruiz [email protected]:
@timrogers https://github.com/timrogers This would be nice. I can
implement this if you're still interested!
btw, awesome gem! [image: 👍]Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-35147813
.
from rapgenius.
Related Issues (16)
- Search interface HOT 3
- Automated testing against rapgenius.com HOT 1
- Build a sample app
- Support unannotated lyrics HOT 1
- License missing from gemspec HOT 2
- Use the Rap Genius API HOT 4
- Saner API for getting formatted text
- Use within iOS App HOT 2
- Lyric Annotations are scraped without a space HOT 4
- Checking list of artists? HOT 5
- Support additional fields in the json HOT 2
- Song class description method crashes on empty description HOT 1
- Terms of Service? HOT 2
- no more lyrics available? HOT 12
- API access shut off? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rapgenius.