{"action":"created","issue":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/221","labels_url":"https://api.github.com/repos/pantheon-systems/cli/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/pantheon-systems/cli/issues/221/comments","events_url":"https://api.github.com/repos/pantheon-systems/cli/issues/221/events","html_url":"https://github.com/pantheon-systems/cli/issues/221","id":69083782,"number":221,"title":"Terminus Project Config File","user":{"login":"loganyott","id":4369081,"avatar_url":"https://avatars.githubusercontent.com/u/4369081?v=3","gravatar_id":"","url":"https://api.github.com/users/loganyott","html_url":"https://github.com/loganyott","followers_url":"https://api.github.com/users/loganyott/followers","following_url":"https://api.github.com/users/loganyott/following{/other_user}","gists_url":"https://api.github.com/users/loganyott/gists{/gist_id}","starred_url":"https://api.github.com/users/loganyott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganyott/subscriptions","organizations_url":"https://api.github.com/users/loganyott/orgs","repos_url":"https://api.github.com/users/loganyott/repos","events_url":"https://api.github.com/users/loganyott/events{/privacy}","received_events_url":"https://api.github.com/users/loganyott/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pantheon-systems/cli/labels/Feature%20Request","name":"Feature Request","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-17T07:16:16Z","updated_at":"2016-01-25T21:09:51Z","closed_at":"2015-08-18T19:07:01Z","body":"I'm not sure if this would be used by others or not, but I have often found myself wanting a config file for terminus to set some default values. The idea is that this would be similar to the WP-CLI `wp-cli.yaml` file.\r\n\r\nI've currently implemented a really rough version of this in a fork. Terminus searches current directory and up for a `.terminus` file, checks if valid JSON is found, and then either returns a value specified by a passed key or the entire parsed env object.\r\n\r\nRight now, I've just implemented it for the `site` arg. So instead of `terminus site <subcmd> --site=mysite`, I can drop a `.terminus` in my project root with\r\n```\r\n{\r\n  \"site\": \"mysite\"\r\n}\r\n```\r\nand then `terminus site <subcmd>` will assume `--site=mysite` if no `site` value is explicitly passed in.\r\n\r\nLet me know if you think this would be helpful and I'll look at building some functional tests for it (unfortunately writing these is a little new to me) and get a PR going."},"comment":{"url":"https://api.github.com/repos/pantheon-systems/cli/issues/comments/174663770","html_url":"https://github.com/pantheon-systems/cli/issues/221#issuecomment-174663770","issue_url":"https://api.github.com/repos/pantheon-systems/cli/issues/221","id":174663770,"user":{"login":"loganyott","id":4369081,"avatar_url":"https://avatars.githubusercontent.com/u/4369081?v=3","gravatar_id":"","url":"https://api.github.com/users/loganyott","html_url":"https://github.com/loganyott","followers_url":"https://api.github.com/users/loganyott/followers","following_url":"https://api.github.com/users/loganyott/following{/other_user}","gists_url":"https://api.github.com/users/loganyott/gists{/gist_id}","starred_url":"https://api.github.com/users/loganyott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganyott/subscriptions","organizations_url":"https://api.github.com/users/loganyott/orgs","repos_url":"https://api.github.com/users/loganyott/repos","events_url":"https://api.github.com/users/loganyott/events{/privacy}","received_events_url":"https://api.github.com/users/loganyott/received_events","type":"User","site_admin":false},"created_at":"2016-01-25T21:09:51Z","updated_at":"2016-01-25T21:09:51Z","body":"I'll try to find an appropriate place but I found it worthy of noting that I don't think this is in the docs anywhere. I had to find this issue to remember which ENV variables to use. I would be happy to hear that I am wrong though! :D"}}