Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias identifier ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot NameLoad body Return NameLoad If AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler body Pass If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Dict Print Str Print BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Print BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad orelse AugAssignAdd NameStore Num If NameLoad body Print BinOpMod Str NameLoad Return IfExp NameLoad Num Num decorator_list decorator_list
N/A N/A Runs a build and symlinks all output results of the specified rules to a
path.
All of the output files of the specified rules will be symlinked to the target
output path. The directory structure will be exactly that of under the
various build-*/ folders but collapsed into one.

A typical overlay rule will bring together many result srcs, for example
converted audio files or compiled code, for a specific configuration.
One could have many such rules to target different configurations, such as
unoptimized/uncompiled vs. optimized/packed.

Examples:
# Link all output files of :release_all to /some/bin/, merging the output
anvil overlay --output=/some/bin/ :overlay
# Clean (aka delete symlinks) /some/bin/ before doing the linking
anvil overlay --clean --output=/some/bin/ :overlay
 N/A __author__ benvanik@google.com (Ben Vanik) N/A os N/A shutil N/A sys N/A anvil.commands.util commandutil anvil.manage ManageCommand OverlayCommand N/A ManageCommand N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super OverlayCommand self __init__ name overlay help_short Builds and symlinks output to a target path. help_long __doc__ N/A N/A N/A self _add_common_build_hints N/A N/A N/A N/A self completion_hints extend N/A -o --output -c --clean N/A create_argument_parser N/A N/A self N/A N/A N/A parser N/A N/A N/A super OverlayCommand self create_argument_parser N/A N/A N/A self _add_common_build_arguments parser targets True N/A N/A N/A parser add_argument -o --output dest output required True help Output path to place all symlinks. Will be created if it does not exist. N/A N/A N/A parser add_argument -c --clean dest clean action store_true help Whether to remove all output files before deploying. N/A parser N/A execute N/A N/A self args cwd N/A N/A N/A N/A result all_target_outputs N/A N/A commandutil run_build cwd args N/A N/A result N/A N/A False N/A N/A args clean N/A N/A N/A N/A N/A N/A shutil rmtree N/A args output N/A N/A N/A N/A N/A N/A N/A N/A N/A os path isdir N/A args output N/A N/A N/A N/A os makedirs N/A args output N/A all_target_outputs N/A list all_target_outputs N/A N/A N/A all_target_outputs sort N/A checked_dirs N/A N/A N/A N/A Symlinking results to %s: N/A args output N/A skipped_links 0 N/A target_output all_target_outputs N/A N/A rel_path N/A N/A N/A os path relpath target_output cwd N/A rel_path_parts N/A N/A rel_path split N/A os sep N/A N/A N/A N/A rel_path_parts N/A 0 startswith build- N/A N/A rel_path N/A N/A N/A os path join N/A rel_path_parts N/A 1 N/A deploy_path N/A N/A N/A os path normpath N/A N/A N/A os path join N/A args output rel_path N/A deploy_dir N/A N/A N/A os path dirname deploy_path N/A N/A N/A N/A checked_dirs get deploy_dir False N/A N/A N/A N/A N/A N/A os path exists deploy_dir N/A N/A N/A N/A os makedirs deploy_dir N/A N/A checked_dirs N/A deploy_dir True N/A N/A N/A N/A N/A os path exists deploy_path N/A N/A N/A %s -> %s N/A rel_path deploy_path N/A N/A N/A os symlink target_output deploy_path N/A N/A skipped_links 1 N/A skipped_links N/A N/A N/A (%s skipped) skipped_links N/A N/A result 0 1 N/A N/A