def FirstAction( act_var ): pass def SecondAction( act_var ): pass
yield { 'actions': [ FirstAction, SecondAction ], 'getargs': { 'act_var': ( 'OtherTask', 'some_var' ) }}
def FirstAction( act_var, direct_var_a ): pass def SecondAction( act_var, direct_var_b ): pass
yield { 'actions': [ ( FirstAction, ??? ), ( SecondAction, ??? ) ], 'getargs': { 'act_var': ( 'OtherTask', 'some_var' ) }}
def BuildFunction( target_path, sdk_path, lib_path, build_flags, target_lib, num_threads ): pass
global_target_path = '...'global_build_flags = '...' yield { 'actions': [ ( BuildFunction, [ global_target_path ] ), ], 'getargs': { 'sdk_path': ( 'RetrieveEnvPaths', 'sdk' ), 'lib_path': ( 'RetrieveEnvPaths', 'lib' ), 'num_threads': ( 'RetrieveCpuInfo', 'units' ), }, 'params': [ { 'name': 'target_lib', 'short': 't', 'type': str }, ]}
Can i pass 'global_build_flags' into 'BuildFunction' directly as 'build_flags' argument?
I checked and the docs and it do not show any example using keyword arguments.
Can you contribute a patch to the documentation?