Skip to content

Warn if no plugin or theme has been specified#38

Merged
schlessera merged 2 commits intomasterfrom
27-args
Aug 2, 2018
Merged

Warn if no plugin or theme has been specified#38
schlessera merged 2 commits intomasterfrom
27-args

Conversation

@swissspidy
Copy link
Copy Markdown
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.

@swissspidy swissspidy requested a review from schlessera August 2, 2018 11:54
When I run `wp language theme list --all`
Then STDOUT should be:
"""
Success: No theme installed.
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 added command:language-plugin-list Related to 'language plugin list' command command:language-theme-list Related to 'language theme list' command labels Aug 2, 2018
@schlessera schlessera added this to the 1.0.8 milestone Aug 2, 2018
@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

Labels

command:language-plugin-list Related to 'language plugin list' command command:language-theme-list Related to 'language theme list' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants