ALR-EXEC(1) | Alire manual | ALR-EXEC(1) |
alr-exec - Run the given command in the alire project context
alr exec [options] [-P?] [--] <executable/script> [<switches and arguments>]
Alr sets up the environment variables (GPR_PROJECT_PATH, PATH, etc.) and then spawns the given command.
This can be used to run tools or scripts on Alire projects. The -P switch can be used to ask Alire to insert a -P <PROJECT_FILE> switch to the command arguments. -P takes an optional position argument to specify where to insert the extra switch. -P1 means first position, -P2 second position, etc. -P-1 means last position, -P-2 penultimate position, etc. -P equals -P1. For example "alr exec -P2 -- python3 main.py arg1" will run the following command: ["python3", "main.py", -P, "crate.gpr", "arg1"]
alr(1), alr-action(1), alr-build(1), alr-clean(1), alr-dev(1), alr-edit(1), alr-run(1), alr-test(1), gprbuild(1)
Generated with generate-man from Alire execution
August 3, 2022 | Alire 1.2 |