Skip to content

Commit

Permalink
Added exit command to quit haxor cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jashgala committed May 12, 2016
1 parent bc2f59e commit f8dd3c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haxor_news/haxor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import os
import platform
import subprocess
import sys

import click
from prompt_toolkit import AbortAction, Application, CommandLineInterface
Expand Down Expand Up @@ -203,4 +204,5 @@ def run_cli(self):
click.echo('Syntax: hn <command> [params] [options]')
while True:
document = self.cli.run()
if (document.text == 'exit'): sys.exit()
self.run_command(document)

0 comments on commit f8dd3c6

Please sign in to comment.