Permalink
Browse files

add script that prints available redis commands

We scrape redis' website (redis.io)... It works, that's all that
matters.
  • Loading branch information...
1 parent a91cd3e commit 5825540a8918eaa23e11ac83020ae3f14224cdd6 @bakkdoor committed May 22, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 redis-commands.fy
View
@@ -0,0 +1,8 @@
+#!/usr/bin/env fancy
+
+`curl http://redis.io/commands` lines map: |line| {
+ match line {
+ case /a href='/commands/(.+)'>/ -> |_, cmd|
+ cmd gsub("-", "_") to_sym
+ }
+} . compact inspect println

0 comments on commit 5825540

Please sign in to comment.