From faf2e11dca7f7015e121dbb8ab870e5597cfe4dd Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 19 Sep 2011 14:54:30 -0500 Subject: [PATCH] cli interface --- sshit/cli.py | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/sshit/cli.py b/sshit/cli.py index 47ccdc2..898341f 100644 --- a/sshit/cli.py +++ b/sshit/cli.py @@ -1,9 +1,35 @@ # -*- coding: utf-8 -*- +""" +sshit.cli +~~~~~~~~~ + +This module contains the command-line interface for sshit. +""" + +import sys + +from clint import args +from clint.textui import colored, indent, puts -def dependencies_available(): - pass +def display_version(): + print '{0}. {1}'.format( + colored.red('sshit'), + colored.black('A Kenneth Reitz Project.')) + def main(): - pa \ No newline at end of file + + # Arumengs were passed. + if args.get(0) is not None: + display_version() + sys.exit(1) + + print 'SSH Server started. u: {0} p: {1}'.format( + colored.yellow('kreitz'), + colored.yellow('iwefhoihef') + ) + + +