cwl_utils.expression_refactor

CWL Expression refactoring tool for CWL.

Module Contents

Classes

saveCWL

Shortcut type for CWL v1.x parse.save().

Functions

arg_parser()

Build the argument parser.

parse_args(args)

Parse the command line options.

main()

Console entry point.

run(args)

Collect the arguments and run.

refactor(args)

Primary processing loop.

Attributes

Protocol

defaultStreamHandler

save_type

cwl_utils.expression_refactor.Protocol
cwl_utils.expression_refactor.defaultStreamHandler
cwl_utils.expression_refactor.save_type
class cwl_utils.expression_refactor.saveCWL

Bases: typing_extensions.Protocol

Inheritance diagram of cwl_utils.expression_refactor.saveCWL

Shortcut type for CWL v1.x parse.save().

__call__(val, top=True, base_url='', relative_uris=True)

Must use this instead of a Callable due to the keyword args.

Parameters:
  • val (Any) –

  • top (bool) –

  • base_url (str) –

  • relative_uris (bool) –

Return type:

save_type

cwl_utils.expression_refactor.arg_parser()

Build the argument parser.

Return type:

argparse.ArgumentParser

cwl_utils.expression_refactor.parse_args(args)

Parse the command line options.

Parameters:

args (List[str]) –

Return type:

argparse.Namespace

cwl_utils.expression_refactor.main()

Console entry point.

Return type:

None

cwl_utils.expression_refactor.run(args)

Collect the arguments and run.

Parameters:

args (List[str]) –

Return type:

int

cwl_utils.expression_refactor.refactor(args)

Primary processing loop.

Parameters:

args (argparse.Namespace) –

Return type:

int