Merge branch 'master' into version-0.3
Conflicts: setup.py yaql/cli/cli_functions.py yaql/functions/builtin.py
This commit is contained in:
commit
f07215a2b1
@ -18,6 +18,9 @@ from yaql.language import parser, context
|
|||||||
__versioninfo__ = (0, 3, 0)
|
__versioninfo__ = (0, 3, 0)
|
||||||
__version__ = '.'.join(map(str, __versioninfo__))
|
__version__ = '.'.join(map(str, __versioninfo__))
|
||||||
|
|
||||||
|
__versioninfo__ = (0, 2, 1)
|
||||||
|
__version__ = '.'.join(map(str, __versioninfo__))
|
||||||
|
|
||||||
|
|
||||||
def parse(expression):
|
def parse(expression):
|
||||||
return parser.parse(expression)
|
return parser.parse(expression)
|
||||||
|
@ -33,12 +33,16 @@ PROMPT = "yaql> "
|
|||||||
@context_aware
|
@context_aware
|
||||||
def main(context, show_tokens):
|
def main(context, show_tokens):
|
||||||
print "Yet Another Query Language - command-line query tool"
|
print "Yet Another Query Language - command-line query tool"
|
||||||
|
print "Version {0}".format(version)
|
||||||
print "Copyright (c) 2013 Mirantis, Inc"
|
print "Copyright (c) 2013 Mirantis, Inc"
|
||||||
print
|
print
|
||||||
if not context.get_data():
|
if not context.get_data():
|
||||||
print "No data loaded into context "
|
print "No data loaded into context "
|
||||||
print "Type '@load data-file.json' to load data"
|
print "Type '@load data-file.json' to load data"
|
||||||
print
|
print
|
||||||
|
|
||||||
|
readline.parse_and_bind('')
|
||||||
|
|
||||||
comm = True
|
comm = True
|
||||||
while comm != 'exit':
|
while comm != 'exit':
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user