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)
|
||||
__version__ = '.'.join(map(str, __versioninfo__))
|
||||
|
||||
__versioninfo__ = (0, 2, 1)
|
||||
__version__ = '.'.join(map(str, __versioninfo__))
|
||||
|
||||
|
||||
def parse(expression):
|
||||
return parser.parse(expression)
|
||||
|
@ -33,12 +33,16 @@ PROMPT = "yaql> "
|
||||
@context_aware
|
||||
def main(context, show_tokens):
|
||||
print "Yet Another Query Language - command-line query tool"
|
||||
print "Version {0}".format(version)
|
||||
print "Copyright (c) 2013 Mirantis, Inc"
|
||||
print
|
||||
if not context.get_data():
|
||||
print "No data loaded into context "
|
||||
print "Type '@load data-file.json' to load data"
|
||||
print
|
||||
|
||||
readline.parse_and_bind('')
|
||||
|
||||
comm = True
|
||||
while comm != 'exit':
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user