bin/cubicweb-ctl
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Mon, 12 May 2014 12:37:19 +0200
changeset 9740 c0239d8ae742
parent 0 b97547f5f1fa
child 12253 9165f4b7426b
permissions -rwxr-xr-x
[shell] provide autocompletion for rql queries in cubicweb-ctl shell (closes #3560541) Use the ``rql.suggestions`` component to complete user's input - readline calls the ``complete`` method with user's input, - the ``complete`` method asks for each known completers if it can suggest completions for user's input.

#!/usr/bin/env python
from cubicweb.cwctl import run
import sys
run(sys.argv[1:])