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

Warn if no plugin or theme has been specified #38

Merged
merged 2 commits into from
Aug 2, 2018
Merged

Conversation

swissspidy
Copy link
Member

Somehow using wp theme path and then deleting that directory doesn't work... It seems to work in https://github.com/wp-cli/extension-command/pull/83/files though.

Fixes #27.

When I run `wp language theme list --all`
Then STDOUT should be:
"""
Success: No theme installed.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broken test: the string should be Success: No themes installed. (plural)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh!

I didn't notice this because locally I get this error:

Given an empty {THEME_DIR} directory                                       # features/steps/given.php:14
      Attempted to delete directory '/private/var/folders/c1/8bn4rqzx0h1f49bxgmrzk2hm0000gn/T/wp-cli-test-run-language-theme.feature.158-5b63048a63f427.56141581/wp-content/themes' that is not in the temp directory '/var/folders/c1/8bn4rqzx0h1f49bxgmrzk2hm0000gn/T'. features/steps/given.php:20

(notice /private/var vs /var)

That's why I thought the issue is with removing the files, not with the success message.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to figure something out with this /private prefix on Macs. I have this issue from time to time too.

@schlessera schlessera merged commit 710c821 into master Aug 2, 2018
@schlessera schlessera deleted the 27-args branch August 2, 2018 13:58
schlessera added a commit that referenced this pull request Jan 5, 2022
Warn if no plugin or theme has been specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants