just small typo fixes.

This commit is contained in:
Johannes Findeisen 2013-08-18 03:08:09 +02:00
commit 6186add23b
2 changed files with 9 additions and 15 deletions

View file

@ -3,7 +3,7 @@ Just the frontends.py stub... ;)
If linspector is being started without a frontend "enabled" it just is doing stuff like: polling, alerting, logging etc.
Frontends a absolutely no requirement for running Linspector.
Frontends are absolutely no requirement for running Linspector.
"""

View file

@ -1,12 +1,14 @@
"""
The Linspector Interactive Shell...
Lish is the Linspector Interactive Shell...
This will become an interface to Linspector at "start" time. Think about MidnightCommander... and then run
Linspector in a screen session and not as daemon, why not? BTW.: Daemonization is at this point of development
cancelled, because it makes no sense to daemonize everything. Linspector is a user software which will run in any
screen session perfectly.
"""
from requests.status_codes import title
# what is this?
#from requests.status_codes import title
'''
#see http://docs.python.org/dev/library/argparse.html
@ -45,12 +47,14 @@ from requests.status_codes import title
'''
from lib.frontends.frontend import Frontend
import argparse, os
import argparse
import os
from shlex import split as shsplit
from cmd import Cmd
VERSION = "0.1"
class LishFrontend(Frontend):
def __init__(self, **kwargs):
@ -116,8 +120,6 @@ class HostgroupCommander(Exit, object):
print("gives you control over a member of the hostgroup")
class LishCommander(Exit, ShellCommander):
def __init__(self, kwargs):
@ -157,8 +159,6 @@ class LishCommander(Exit, ShellCommander):
except KeyboardInterrupt, ke:
pass
def help_hostgroup(self):
print '''
help for Hostgroup
@ -167,10 +167,4 @@ class LishCommander(Exit, ShellCommander):
def complete_hostgroup(self, text, line, begidx, endidx):
"hostgroup + ' '"
if begidx == 10:
return [x for x in self._hostgroupArgs if x.startswith(text)] if len(text) > 0 else self._hostgroupArgs
return [x for x in self._hostgroupArgs if x.startswith(text)] if len(text) > 0 else self._hostgroupArgs