refactor(clew): clarify AST dump orchestration
This commit is contained in:
@@ -122,7 +122,7 @@ def run_ast_dump(game_root: Path, script: Path, output: Path) -> None:
|
||||
subprocess.run(command, check=True)
|
||||
|
||||
|
||||
def dump_ast(output_root: Path, extracted_root: Path, overwrite: bool) -> None:
|
||||
def orchestrate_ast_dump(output_root: Path, extracted_root: Path, overwrite: bool) -> None:
|
||||
game_roots = find(
|
||||
extracted_root,
|
||||
lambda path: (
|
||||
@@ -163,7 +163,7 @@ def run(args: argparse.Namespace) -> None:
|
||||
extract_game_files(game_root, extracted)
|
||||
|
||||
if not args.no_ast_dump:
|
||||
dump_ast(output_root, extracted, args.overwrite)
|
||||
orchestrate_ast_dump(output_root, extracted, args.overwrite)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user