Skip to content

liammulh/run.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

run.sh

run.sh is a template Bash script that can be incorporated into any code base to run arbitrary command line tasks. It's most useful for people who prefer to use the command line. It's similar to Make, just, and Invoke, but it's simpler.

run.sh can be set up to provide a consistent CLI for any tool. For example, suppose you have a code base that has C++ code and Python code. You could set up run.sh to have the following tasks:

# Format source code:
run fmt:cc
run fmt:py

# Lint source code:
run lint:cc
run lint:py

# Run test suites:
run test:cc
run test:py

You get the idea. As you can see above, I typically create an alias for the script in ~/.bashrc:

alias run="./run.sh"

Check out run.sh to get a better idea of how the script works and how you could set it up.

About

A Bash script for running command line tasks

Resources

License

Stars

Watchers

Forks

Languages