roots / trellis-cli

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

Support new trellis.cli.yml config file #387

Closed swalkinshaw closed 1 year ago

swalkinshaw commented 1 year ago

Adds more supported config files. In order of precedence, the following paths will be loaded:

This change is being done to allow the .trellis directory to be gitigored as it contains CLI generated files that are machine specific and should not be committed to Git.

swalkinshaw commented 1 year ago

I'm still considering other CLI config names. Here are some options:

I think trellis.yml is too confusing right now since it doesn't mention CLI and all the current config settings are much more related to the CLI than Trellis itself.

And I'm 50/50 on whether to use the leading . to make it a hidden file or not. Since the file is optional (and additive), and not directly used by Trellis, the dot prefix makes that more obvious. But what's the actual point in hiding it? The leading . is more annoying to use and it makes it less visible.

swalkinshaw commented 1 year ago

Got some community feedback and decided to go with trellis.cli.yml.