Files

24 lines
654 B
TOML

# All scripts require that the `cleanup-scripts` folder is available
# Runs all the cleanup-scripts
[tasks.cleanup_script]
workspace = false
run_task = [
{name = ["add_eof_newline", "remove_trailing_whitespaces"]}
]
# Runs the `add_eof_newline` script
[tasks.add_eof_newline]
workspace = false
script = ['''
#!/usr/bin/env bash
${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY}/add_eof_newline.sh
''']
# Runs the `remove_trailing_whitespaces` script
[tasks.remove_trailing_whitespaces]
workspace = false
script = ['''
#!/usr/bin/env bash
${CARGO_MAKE_CURRENT_TASK_INITIAL_MAKEFILE_DIRECTORY}/remove_trailing_whitespaces.sh
''']