Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="je_auto_control_dev",
version="0.0.26",
version="0.0.27",
author="JE-Chen",
author_email="[email protected]",
description="auto testing",
Expand Down
20 changes: 9 additions & 11 deletions je_auto_control/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@
from je_auto_control.utils.executor.action_executor import execute_action
from je_auto_control.utils.executor.action_executor import execute_files

if __name__ == "__main__":
def preprocess_execute_action(file_path: str):
execute_action(read_action_json(file_path))

def preprocess_execute_action(file_path: str):
execute_action(read_action_json(file_path))


def preprocess_execute_files(file_path: str):
execute_files(get_dir_files_as_list(file_path))

def preprocess_execute_files(file_path: str):
execute_files(get_dir_files_as_list(file_path))

argparse_event_dict = {
"execute_file": preprocess_execute_action,
"execute_dir": preprocess_execute_files
}

if __name__ == "__main__":
argparse_event_dict = {
"execute_file": preprocess_execute_action,
"execute_dir": preprocess_execute_files
}
parser = argparse.ArgumentParser()
parser.add_argument("-e", "--execute_file", type=str, help="choose action file to execute")
parser.add_argument("-d", "--execute_dir", type=str, help="choose dir include action file to execute")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="je_auto_control",
version="0.0.93",
version="0.0.94",
author="JE-Chen",
author_email="[email protected]",
description="auto testing",
Expand Down