Skip to content

jdidion/wdlkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WDLkit is a toolkit to simplify and accelerate development of tasks and workflows in WDL.

Dependencies

  • Python 3.6+

Installation

$ pip install wdlkit

Commands

format

Formats your WDL file(s) according to WDLkit style. This command is similar to black in that it is highly opinionated and does not allow for configuration.

Note: this command is currently experimental. It does not yet enforce all the rules described in the WDLkit style document. It may corrupt your WDL files, so we recommend having the formatted files output to a separate location using the -o option. Use at your own risk with the --overwrite option to overwrite the input files!

Usage: wdlkit format [OPTIONS] URI

  Format a WDL file and its imports.

Options:
  -i, --import-dir PATH           Directory in which to look for imports. May
                                  be specified multiple times.
  -v, --version TEXT              WDL version to generate. Currently, only 1.0
                                  is supported.
  -o, --output-dir PATH           Directory in which to output formatted WDL
                                  files. If not specified, the input files are
                                  overwritten.
  -O, --overwrite / --no-overwrite
                                  Whether to overwrite the input WDL file(s)
                                  with the reformatted versions. This option
                                  is ignored if `output_dir` is specified.
                                  Currently, this option is disabled by
                                  default because WDLkit is in development and
                                  there is a risk that this command might
                                  corrupt the WDL files. Once WDLkit reaches
                                  v1.0, this option will change to be enabled
                                  by default.
  --help                          Show this message and exit.

Known limitations

This command relies on miniwdl for parsing. Notably, miniwdl does not currently include comments in the abstract syntax tree, so the format command will cause any comments in your WDL file to be removed.

About

WDL toolkit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published