Skip to content

Commit

Permalink
Libraries Short Importation.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 29, 2016
1 parent b35bd9f commit c057f79
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 29 deletions.
37 changes: 21 additions & 16 deletions ktf.console
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,33 @@
#HEAD#########################################################
#
# Katana Framework | ktf.console
# this file automatically imports the modules according to
# the criteria of the user, here the user can navigate
# through the modules, configure and launch, and perform
# other characteristics of the framework tasks,
# use own functions to set the type of task
# to be performed according to the user want.
#
#
# Last Modified: 27/07/2016
# Last Modified: 29/07/2016
#
#########################################################HEAD#

from core.Function import KatanaCheckActionShowModules,KatanaCheckActionUseModule,KatanaCheckActionExefunction
from core.Function import KatanaCheckActionShowOptions,LoadBuffer,ShowFullOptions,Executefunction
from core.Function import KatanaCheckActionGetInfo,ShowInformationModule,KatanaCheckActionShowMOptions
from core.Function import ShowOptions,KatanaCheckActionSetValue,UpdateValue,runModule,GetRootModules
from core.Function import KatanaCheckActionisBack,KatanaCheckActionGlobalCommands,ListModules
from core.Function import (
KatanaCheckActionShowModules,
KatanaCheckActionUseModule,
KatanaCheckActionExefunction,
KatanaCheckActionShowOptions,
KatanaCheckActionisBack,
KatanaCheckActionGlobalCommands,
KatanaCheckActionShowMOptions,
KatanaCheckActionGetInfo,
KatanaCheckActionSetValue,
LoadBuffer,
ShowFullOptions,
Executefunction,
ShowInformationModule,
ShowOptions,
UpdateValue,
runModule,
GetRootModules,
ListModules)

from core import Banner , Errors
from core.GeneralCommands import *
from core.Design import *

import importlib, argparse

parser = argparse.ArgumentParser(description='Args for Console mode.',epilog='for More information go to https://github.com/powerscript/katanaframework')
Expand Down Expand Up @@ -76,4 +81,4 @@ if __name__=="__main__":
if args.list:
ListModules()
exit()
katanaFrameworkConsole()
katanaFrameworkConsole()
29 changes: 19 additions & 10 deletions ktf.run
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,29 @@
#HEAD#########################################################
#
# Katana Framework | ktf.run
# this file run modules diretly.
#
#
# Last Modified: 15/05/2016
# Last Modified: 29/07/2016
#
#########################################################HEAD#


from core.Function import KatanaCheckActionShowModules,KatanaCheckActionUseModule,KatanaCheckActionExefunction
from core.Function import KatanaCheckActionShowOptions,LoadBuffer,ShowFullOptions,Executefunction
from core.Function import KatanaCheckActionGetInfo,ShowInformationModule,KatanaCheckActionShowMOptions
from core.Function import ShowOptions,KatanaCheckActionSetValue,UpdateValue,runModule
from core.Function import KatanaCheckActionisBack,KatanaCheckActionGlobalCommands,GetRootModules
from core.Function import (
KatanaCheckActionShowModules,
KatanaCheckActionUseModule,
KatanaCheckActionExefunction,
KatanaCheckActionShowOptions,
KatanaCheckActionisBack,
KatanaCheckActionShowMOptions,
KatanaCheckActionGlobalCommands,
KatanaCheckActionSetValue,
KatanaCheckActionGetInfo,
LoadBuffer,
ShowFullOptions,
Executefunction,
ShowInformationModule,
ShowOptions,
UpdateValue,
runModule,
GetRootModules)

from core.Default import *
from core.Design import *
Expand All @@ -28,7 +38,6 @@ LoadBuffer()
CLASS_BANNER=DESIGN()
CLASS_BANNER.ktfrun()


parser = argparse.ArgumentParser()
parser.add_argument("-m", "--module", help=" Script module to run.")
args = parser.parse_args()
Expand Down
3 changes: 0 additions & 3 deletions ktf.update
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#HEAD#########################################################
#
# Katana Framework | ktf.update
# Update.
#
#
# Last Modified: 03/06/2016
#
#########################################################HEAD#
Expand Down

0 comments on commit c057f79

Please sign in to comment.