ALR-EXEC(1)
β¨ alr-exec π (Alire manual) β¨
π NAME
Okay so alr-exec is the main character of the Alire project context π
It runs whatever command you give it, inside the project context. Iconic, honestly.
π§ SYNOPSIS
alr exec [options] [-P?] [--] <executable/script> [<switches and arguments>]
Bestie, the [-P?] bit is optional, and so is [options]. The -- is there so anything after it gets passed straight through to your command. π«Ά
πΈ OPTIONS
-P[ARG]β Adds-P <PROJECT_FILE>to the command switches. Lowkey the whole reason you're here π¦
π GLOBAL OPTIONS
These are the global options, and they work on basically every subcommand. No cap, know them π
-c,--config=ARGβ Overrides the configuration folder location π-f,--forceβ Keeps going after a recoverable troublesome situation. Main character energy, but make it careful π-h,--helpβ Shows general help, or help for a specific command π«Ά-n,--non-interactiveβ Assumes default answers for every user prompt. No questions asked π--no-colorβ Turns off colours in the output π--no-ttyβ Turns off control characters in the output π--prefer-oldestβ When resolving dependencies, it picks the oldest versions instead of the newest. Vibe check: this one's a little different β¨--versionβ Shows the version and exits π¦-qβ Limits the output to errors only πΈ-vβ Makes things more verbose. Use it twice for extra detail π₯-d,--debug[]β Turns on debug-specific log messages π§
π¦ DESCRIPTION
Okay so, alr exec sets up the environment variables (GPR_PROJECT_PATH, PATH, etc.) and then spawns the command you gave it. Literally so helpful π
This is the move for running tools or scripts on Alire projects. The -P switch tells Alire to slip a -P <PROJECT_FILE> switch into your command's arguments. It takes an optional position, so you can decide where it goes:
-P1means first position-P2means second position, and so on-P-1means last position-P-2means penultimate position, and so on-Pon its own equals-P1
For example, alr exec -P2 -- python3 main.py arg1 runs this command:
["python3", "main.py", -P, "crate.gpr", "arg1"]
The -P2 put the -P switch right in the second spot, so it's giving organised π
π SEE ALSO
Here's where to look next, bestie π 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)
π AUTHOR
Generated with generate-man from Alire execution. Iykyk π§
Alire 1.2 Β· Aug 3, 2022 Β· ALR-EXEC(1) β bye bestie, you're literally the best ππ«Άβ¨
π¦ where this page comes from
- debian bookworm: alire 1.2.1-1+b1 Β· GPL-3.0-or-later
- debian trixie: alire 1.2.1-2.1+b1 Β· GPL-3.0-or-later
- ubuntu noble: alire 1.2.1-1.1build1 Β· GPL-3.0-or-later
- ubuntu noble: alire 1.2.1-1.1build1.1 Β· GPL-3.0-or-later
- ubuntu questing: alire 1.2.1-2.1
- ubuntu resolute: alire 1.2.1-2.1build1 Β· GPL-3.0-or-later
- ubuntu stonking: alire 1.2.1-2.1build1 Β· GPL-3.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms