Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'terminus site info' would nicer not to require --nocache after site creation #55

Closed
bwood opened this issue Jan 22, 2015 · 4 comments
Closed

Comments

@bwood
Copy link
Contributor

bwood commented Jan 22, 2015

[bwood@mbp ~]$ grep -i version ~/code/drupal/bwood/cli/php/terminus.php
define( 'TERMINUS_VERSION', '0.3.2-beta');
[bwood@mbp ~]$ terminus sites create --product=21e1fada-199c-492b-97bd-0b36b53a9da0 --name=ob7-t032b-01 --label=ob7-t032b-01 --org=430c1947-354f-459a-8755-f38293aef105
Creating new Drupal 7 installation ...
Working .............................
Success: Pow! You created a new site!

I need the site uuid...

[bwood@mbp ~]$ terminus site info --site=ob7-t032b-01
Error: Exception thrown - No site exists with this name

What...? Oh maybe I need:

[bwood@mbp ~]$ terminus site info --site=ob7-t032b-01 --nocache
+----------------+---------------------------------------------------------------------------------------------+
|
+----------------+---------------------------------------------------------------------------------------------+
| holder_id      | a5814357-ecde-46aa-af6e-82336848c660                                                        |
| name           | ob7-t032b-01                                                                                |
| created        | 1421887803                                                                                  |
| framework      | drupal                                                                                      |
| holder_type    | user                                                                                        |
| service_level  | free                                                                                        |
| purchase_date  | 1421887803                                                                                  |
| upstream       | git://github.com/pantheon-systems/drops-7.git, 21e1fada-199c-492b-97bd-0b36b53a9da0, master |
| owner          | a5814357-ecde-46aa-af6e-82336848c660                                                        |
| last_code_push | 2015-01-22T00:50:25,                                                                        |
| preferred_zone | chios                                                                                       |
| id             | 673f2411-8107-4f70-8b11-2edcabefe60c                                                        |
+----------------+---------------------------------------------------------------------------------------------+

Some people might not think to try --nocache. If it's got to be required, it would help to output a message about this in the 'sites create' output.

@bwood
Copy link
Contributor Author

bwood commented Jan 22, 2015

--nocache actually seems to clear the cache. After I use it once I don't need it again. I would expect --nocache to simply bypass the cache for this one command.

Maybe I missed it, but I don't see a terminus "cache clear" command. That would be helpful.

@mikevanwinkle
Copy link
Contributor

The site create function should be clearing the cache. I'll fix that. There is a clear cache function terminus cli clear-cache

@bwood
Copy link
Contributor Author

bwood commented Jan 22, 2015

Ah, I didn't notice the cli subcommands.

Another thing that might help would be something like terminus help --all which would spit out all commands and subcommands. If there was another switch like --raw (or something) which disabled the system pager (help shows up in less for me) I could do terminus help --all --raw | grep cache and find the command I need.

@mikevanwinkle
Copy link
Contributor

Closing this one since the issues raised have been either handled or raised elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants