From 16b2d486a4155ecce234b41416ead04cbb6a012b Mon Sep 17 00:00:00 2001 From: Henrique Borges <31735860+henriquehbr@users.noreply.github.com> Date: Wed, 5 Oct 2022 08:31:36 -0300 Subject: [PATCH] snakefmt: add page (#8733) --- pages/common/snakefmt.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/snakefmt.md diff --git a/pages/common/snakefmt.md b/pages/common/snakefmt.md new file mode 100644 index 000000000..89e1cfa7d --- /dev/null +++ b/pages/common/snakefmt.md @@ -0,0 +1,24 @@ +# snakefmt + +> Format Snakemake files. +> More information: . + +- Format a specific Snakefile: + +`snakefmt {{path/to/snakefile}}` + +- Format all Snakefiles recursively in a specific directory: + +`snakefmt {{path/to/directory}}` + +- Format a file using a specific configuration file: + +`snakefmt --config {{path/to/config.toml}} {{path/to/snakefile}}` + +- Format a file using a specific maximum line length: + +`snakefmt --line-length {{100}} {{path/to/snakefile}}` + +- Display the changes that would be performed without performing them (dry-run): + +`snakefmt --diff {{path/to/snakefile}}`