h/plugins/cdecl.py

8 lines
200 B
Python
Raw Normal View History

2014-05-10 04:35:33 +00:00
from util import hook, http
@hook.command
def cdecl(inp):
'''.cdecl <expr> -- translate between C declarations and English, using cdecl.org'''
return http.get("http://cdecl.org/query.php", q=inp)