diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-06-03 01:10:02 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-06-03 01:10:02 -0400 |
commit | 3ce395e2665d120d622b200636e65fbe47105f42 (patch) | |
tree | fc4898bf543c6784b0be061fefc330ff683434f9 /snakemake-mode.el | |
parent | 295bbfbc94727691d7e9919abf9f358ab7a6b241 (diff) | |
download | snakemake-mode-3ce395e2665d120d622b200636e65fbe47105f42.tar.gz |
Expose --touch flag in snakemake-compile-rule
Diffstat (limited to 'snakemake-mode.el')
-rw-r--r-- | snakemake-mode.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el index 929f3bd..5eeefb7 100644 --- a/snakemake-mode.el +++ b/snakemake-mode.el @@ -296,7 +296,7 @@ Flags are taken from `snakemake-compile-command-options'." The numeric prefix JOBS controls the number of jobs that Snakemake runs (defaults to 1). If JOBS is zero, perform a dry -run. +run. If JOBS is negative, just touch the output files. Customize `snakemake-executable' and `snakemake-compile-command-options' to control the compilation @@ -311,9 +311,10 @@ command." (rule-name (match-string-no-properties 2))) (pcase block-type ("rule" - (let* ((job-flag (if (zerop jobs) - " -n " - (format " -j%s " jobs))) + (let* ((job-flag (cond + ((> jobs 0) (format " -j%s " jobs)) + ((zerop jobs) " -n ") + (t " -t "))) (compile-command (concat (snakemake-compile-command) job-flag rule-name))) (call-interactively #'compile))) |