Just – A Powerful Tool for Launching Commands in Your Projects

5/5 - (24 votes)

Just is a command manager that allows users to save and run project-specific commands. The commands, called recipes, are stored in a file named justfile, whose syntax is inspired by make.

Just has many useful features and improvements over make, including support for Linux, macOS, and Windows without additional dependencies, specific and detailed error reporting, and the ability to accept arguments when using it with the command line.

Additionally, Just can be invoked from any subdirectory, not just the directory containing the justfile. Recipes can be written in languages like Python or NodeJS, and errors are resolved statically whenever possible.

The tool also supports loading environment variables from .env files, enumerating recipes from the command line, and generating command line completion scripts for common shells.

For more information about Just and its features, please visit the official website or refer to the official documentation. Examples can also be found on the GitHub repository.

If you need assistance, feel free to open an issue on GitHub or contact the developer on Discord.

When working with shell scripts, remember that each line is executed in a newly created shell. This means that if you change the current directory using one command, it will not affect other command lines.

Another useful trick is to use the “@” symbol to prevent commands from being displayed. For example, if you want to run a command and only display “Done!” without showing the actual command, you can use the following syntax:

hello: @echo 'Done!'

Also, if you want to learn more about designing shell scripts, check out this link . And if you found this article useful, consider supporting the project.

Charles F Flores

With over three years of in-depth experience working in technical fields, Charles is a master content writer who loves writing about Linux and Mac at Easy Tech Tutorials.

Leave a Comment