Snakefile "ymp/rules/phony.rules"

import shutil, pprint

width, height = shutil.get_terminal_size((80, 20))
pp = pprint.PrettyPrinter(indent=1, compact=True, width=width or 80)

rule env_wait:
    message: "Running environment test. Output will be in logdir."
    shell: """
    hostname
    env
    sleep 10
    """

rule ticktock:
    message: "Printing dots to STDOUT and STDERR for 10 min"
    shell: """
    for n in `seq 1 600`; do
     echo "."
     echo "/" >&2
     sleep 1
    done
    """

rule noop:
    message: "Doing ... nothing!"
    shell: "true"