roots / trellis-cli

A CLI to manage Trellis projects
https://roots.io/trellis/
MIT License
169 stars 24 forks source link

💡 Trellias alias should add snippet to site/wp-cli.yml or an alternative wp-cli.yml (or wp-cli.local.yml) config. #408

Open chrillep opened 1 year ago

chrillep commented 1 year ago

Summary

it would be nice if the alias command automaticly added the

_:
  inherit: wp-cli.trellis-alias.yml

snippet to site/wp-cli.yml or an alternative wp-cli.yml (or wp-cli.local.yml) config. ❤️

AC:

alias command

Additional context

No response

swalkinshaw commented 1 year ago

@TangRufus had good thoughts on this a while ago: https://github.com/roots/trellis-cli/pull/246#issuecomment-1031052388

Personally I think we could probably implement the search & replace between some comment blocks without too much issue but as is this is much less risky.

chrillep commented 1 year ago

i agree seems like a no brainer 🧠 . I would almost go so far as to have the snippet and the alias file added by default to roots/trellis

And the alias command to just update the content?

The comments would then help in migration to this opt out default. I mean why not have this by default, its such a quality of life thing.

chrillep commented 1 year ago

BTW the only reason i didnt use trellis alias before, was cause i didnt know about it :)