https://pantsbuild.org/ logo
c

crooked-lawyer-77407

02/26/2023, 4:54 AM
Just a funny thought I had because of a typo I keep making repeatedly, when I build my first guess is to run
pants build <target>
but even though this is called
pantsbuild
there's actually no
pants build
but
pants package
Just thought this was funny
p

proud-dentist-22844

02/26/2023, 5:08 AM
You can create an alias in pants.toml so that build = package 🙂 (search the docs for alias, I haven’t used it much so I don’t recall the syntax off the top of my head)
c

crooked-lawyer-77407

02/26/2023, 5:12 AM
Oh I'll just adapt to the CLI over time, can always bash alias if we have too
c

curved-television-6568

02/26/2023, 12:08 PM
Copy code
# pants.toml
[cli.alias]
build = "package"
😉
h

happy-kitchen-89482

02/26/2023, 3:02 PM
I think we actually discussed this at one point and concluded that "build" was too vague a word to be a goal. It's all "build" in some sense...
c

crooked-lawyer-77407

02/26/2023, 4:26 PM
I'll still stick to adapting to the CLI, good to know about aliases within the pants build system though. Just a funny observation
4 Views