Hey all, I was messing with `[cli.alias]` (<https...
# general
a
Hey all, I was messing with
[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.
1
n
See this section in the documentation how to work with dict options. Basically,
cli.alias
is a dict, so in the .rc you’ll want to append to it instead of overwriting it:
Copy code
[cli]
alias = "+{'my_alias':'something}"
Or do
Copy code
[cli.alias.add]
my_alias = "something"
a
oh, got it. thanks!