Just / List Available Recipes Justfile
List Available Recipes Justfile
Quickly list all recipes defined in your Justfile for easy task management and execution.
$
Terminal just -l just -l #!/bin/bash
# List Available Recipes Justfile
just {{[-l|--list]}} import subprocess
# List Available Recipes Justfile
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"just",
"-l"
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: just not found. Please install it first.")
if __name__ == "__main__":
run_command() When To Use
Auditing tasks available for execution under the Justfile.
Terminal Output
Expected runtime feedback
>
Output Available recipes:
build
test
deploy
clean Power User Variants
Optimized versions
just --list List available recipes using the long option.
just -l List available recipes using the short option.
Command Breakdown
What each part is doing
-
just - Base Command
- The executable that performs this operation. Here it runs Just before the shell applies any redirect operators.
-
-l - l| list
- The value supplied for l| list.
-
-l - Command Option
- Tool-specific option used by this command invocation.
How To Run
Execution path
- Step 1
Open your terminal.
- Step 2
Run the command: just -l
- Step 3
Review the list of available recipes.
Alternative Approaches
Comparable commands in other tools
Alternative version control tools for the same job.
Jj / Split Revision To Destination
jj split -r <revision> -d <revset> Jj / Split Revision Insert Before After jj split -r <revision> -B <revset> -A <revset> Git / Copy Files Changed In Last Commit To Remote git scp <remote_name> HEAD~1 Git / Copy Specific Directory To Remote git scp <remote_name> <path/to/directory> Git / Create Git Repo Current Directory Commit All Files git setup