able-school-92027
03/20/2024, 5:38 PM[cli.alias]
(https://www.pantsbuild.org/2.18/reference/subsystems/cli#alias) and noticed that when we have aliases set on both ~/.pants.rc
and pants.toml
files, the aliases defined on pants.toml
file are not available. Is that the expected behavior? I was expecting they would somehow get merged.narrow-vegetable-37489
03/20/2024, 6:53 PMcli.alias
is a dict, so in the .rc you’ll want to append to it instead of overwriting it:
[cli]
alias = "+{'my_alias':'something}"
narrow-vegetable-37489
03/20/2024, 6:54 PM[cli.alias.add]
my_alias = "something"
able-school-92027
03/20/2024, 6:55 PM