Files
tldr/pages.zh/common/snakefmt.md

24 lines
597 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# snakefmt
> 格式化 Snakemake 文件。
> 更多信息:<https://github.com/snakemake/snakefmt>。
- 格式化特定的 Snakefile
`snakefmt {{path/to/snakefile}}`
- 递归格式化特定目录中的所有 Snakefile
`snakefmt {{path/to/directory}}`
- 使用特定的配置文件格式化文件:
`snakefmt --config {{path/to/config.toml}} {{path/to/snakefile}}`
- 使用特定的最大行长度格式化文件:
`snakefmt --line-length {{100}} {{path/to/snakefile}}`
- 显示将要进行的更改,但不实际执行(干运行):
`snakefmt --diff {{path/to/snakefile}}`