Comments (11)
Yep, I agree but actually many of these above are already available namely:
site (need to add this one)
env (already there)
org (already there)
product ( already there ... at least in creating a site )
bucket ( hmmm this one I have "backup" because there's not a clear concept of what a "bucket" it is in the dashboard so I thought it was confusing ... but I'm open to discussion)
element ( need to add it )
branch ( need to add it )
This should be a quick thing I can get out this week.
Right now most of this interaction is in the command controller itself but I've started moving them to php/Terminus/Helpers/Input
from terminus.
I'm not a fan of how the old Terminus has just one massive function with a switch statement, makes it hard to read and find what your looking for. That's why I'm going with the Helper\Input approach
from terminus.
On this topic I would like to brainstorm about how we might auto populate the "site" based on being in the local site root. I was thinking that we could maybe create a feature to where if a terminus.yml file exists in the working directory then values for options could be grabbed from there ... just an idea and maybe it belongs on another issue.
from terminus.
Oh word? Maybe we just need to get the site one done, since that's what I first encounter. The others are more gravy we can look to improve over time.
from terminus.
Another idea is to store The config in the git config: git config psite.uuid foo-bar-baz...
from terminus.
Hmmm ... that's an interesting idea as well
from terminus.
based on this article btw http://www.triquanta.nl/blog/automatically-switch-drush-versions-project I have been using this system to seperate my D7 / D8 stuff
from terminus.
While it's a neat idea, I believe terminus.yml
> git config
Reasons:
- Terminus should be self-contained. We should assume as little as possible about the user environment. Most users will have a working install of git, but maybe not all.
- Git config has multiple scopes (global, user, repository) which could get screwy.
- Plenty of other things may affect git config, which could lead to unpredictable behavior.
- If Terminus owns its own config, it's much easier to debug. (e.g. "Gist me your terminus.yml file" is an easy request.)
from terminus.
good arguments, and probably what I would choose.
I simply have an aversion to adding files to my repo :) I get tired of typing ls
and seeing 15 files in my site root that are all tiny config files for each and every dev tool the team is using (such as a gemfile, guardfile, gruntfile, package.json, travis.yml...and the list grows as everybody uses their favorite tool) so simply not having another file to worry about versioning or not is appealing.
That said, as a 'fits the most cases' use, a terminus.yml is probably better even if it is less convenient for some like me.
for the sake of fun and giggles, couldn't you also generate a file in a user's .terminus directory with a key of the docroot location and a value of the pantheon uuid? Not that it's better, but it's another way to not add yet another file to the repository that some users may use.
~/code/php/drupal/meridian-180 : uuidstringzorzzz
~/code/php/wordpress/foo : otheruuidomgsolongcantreadddd
it also strikes me as more the convention pantheon has used in the past. It took me a while to get used to drush alias files living in ~/.drush
but now I'm hip with that paradigm.
</ armchairpotstirring>
from terminus.
I'd be in favor of having a ~/.terminus
dir. I think we're already doing that for data caching, so no reason we couldn't have that be a default place for stuff like this to live.
from terminus.
I think this issue has evolved to become a dupe of #221.
from terminus.
Related Issues (20)
- 6848
- [CMSO-1540] Feature request: option to run multidev:create that triggers the workflow and exits HOT 1
- Export the production domain as the URI when exporting drush aliases HOT 1
- Document use of workflow:wait
- terminus
- The file assets://css was not deleted because it does not exist. HOT 1
- Testing Zapier with Chris HOT 1
- Moar zap testing
- Terminus not working on Windows with WSL ubuntu 22.04
- Is TERMINUS_MACHINE_TOKEN still a thing? HOT 12
- terminus self:plugin:install does not exit with an error if the composer command failed
- Terminus fails to return mysql connection string for multidev with numeric name HOT 2
- autocomplete is not working in remote host HOT 1
- Update for compatibility with Drush v12
- PHP 8.2 deprecations HOT 1
- [LOPS-1661] PHP 8.3 Support HOT 1
- Wrong release version pattern HOT 2
- workflow:wait reports workflow is still running when it isn't HOT 1
- Failed code merges are suppressed using `--no-interaction` with `terminus multidev:merge-from-dev`
- defaultMaxRetries not defined in Request::createRetryDecider HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminus.