Skip to content

Commit

Permalink
cleaned up main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
scherng committed Apr 4, 2018
1 parent 31faa2f commit 129296b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ def start():
if message == "quit":
sys.exit()
elif message.startswith("./import "):
importer.Importer().importFile(message[9:])
importer.Importer(message[9:]).importFile()
elif message.startswith("./query "):
p = query_processor.QueryProcessor(message[8:])
print(p.orders)
print(p.selects)
print(p.groups)
print(p.filter)
p.process()
query_processor.QueryProcessor(message[8:]).processQuery()
else:
print("Invalid command.")
print("Invalid command. Try:\n./import <filename>\n./query <query>")

if __name__ == '__main__':
start()

0 comments on commit 129296b

Please sign in to comment.