shakerin / pyland

Simple Way To Create Own Automation Tool
GNU General Public License v3.0
1 stars 0 forks source link

Plan how scripts can be included in frame files or any other files #1

Closed shakerin closed 5 years ago

shakerin commented 5 years ago

decide if frame files are enough to contain scripts/functional codes or another type of file is required to enable script running from code tasks

shakerin commented 5 years ago

CommandLibrary

a new class is extended from TemplateLibrary to separate general
frame files from command frame files

general frame files are the file that are addressed as "frame file"
through the projects

command frame files are the files that are going to be used for
executing python commands

While generating text from objects created in TemplateLibrary 
user has to call the 'getGeneratedCode' method from the TemplateInfo 
class

In case of CommandLibrary, user has to call 'runGeneratedCode' instead

By including CommandLibrary as a separate class, confusion will be
avoided between frame file and command frame file

frame file is addressed as 'frame file', command frame file is 
addressed as 'command file' throughout the project

Framework file

this file can contain multiple frame object along with other texts
it can also contain basic coding commands such as for loop/ if loop

Example: (Probable Structure)

This is a frameObj(ÖbjectName1). This can be done with
frameObj(ObjectName2).
frameObj(ObjectName3)
cmdframeObj(ObjectName4)