From: Fred Date: Mon, 4 Mar 2013 04:03:38 +0000 (+0800) Subject: Rename RunCommand to CommandRunner X-Git-Tag: v0.4~57 X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=22da74386cca11d0390a5ecd2b970d676d3bd102;p=mdk.git Rename RunCommand to CommandRunner --- diff --git a/lib/command.py b/lib/command.py index 391d21d..1808c8c 100644 --- a/lib/command.py +++ b/lib/command.py @@ -80,7 +80,7 @@ class Command(object): return self.__Wp -class RunCommand(object): +class CommandRunner(object): """Executes a command""" def __init__(self, command): diff --git a/mdk.py b/mdk.py index f10399e..0a2f54f 100755 --- a/mdk.py +++ b/mdk.py @@ -26,7 +26,7 @@ import sys import argparse import os import re -from lib.command import RunCommand +from lib.command import CommandRunner from lib.commands import * from lib.config import Conf from lib.tools import process @@ -82,5 +82,5 @@ if alias != None: classname = '%sCommand' % (cmd.capitalize()) cls = globals().get(classname) Cmd = cls(C) -Runner = RunCommand(Cmd) +Runner = CommandRunner(Cmd) Runner.run(args, prog='%s %s' % (os.path.basename(sys.argv[0]), cmd))