-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from vinugawade/1-unknown-command-drush-for-ddev
Fix for issue #1
- Loading branch information
Showing
7 changed files
with
108 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,26 @@ | ||
# Change Log | ||
|
||
## 1.0.0 :- | ||
## v1.0.0 | ||
|
||
- Enables **Clear Cache** command of **Drush** to used in **Drupal** projects, Only works on **Linux/Mac** OS. | ||
- Added support for the **Clear Cache** command of **Drush** in **Drupal** projects. This feature is available only for **Linux/Mac** OS. | ||
|
||
## 1.1.0 :- | ||
## v1.1.0 | ||
|
||
- Enables **Clear Cache** command's support for **DDEV** drupal project environment. | ||
- Added support for the **Clear Cache** command in **DDEV** Drupal project environment. | ||
- Fixed minor issues and added comments. | ||
- Removed extension from **Preview**. | ||
- Removed extension from the **Preview**. | ||
- Updated the **Readme** file. | ||
|
||
## 1.2.0 :- | ||
## v1.2.0 | ||
|
||
- Now displays more details about site in tooltip. | ||
- Action button will be not visible if **Drush** not found. | ||
- Updated output messages for end users. | ||
- Enhanced tooltip to display more details about the site. | ||
- Added logic to hide the action button if **Drush** is not found. | ||
- Improved output messages for end users. | ||
- Fixed minor issues and removed debugging code. | ||
- Updated the **Readme** file. | ||
|
||
## v1.3.0 | ||
|
||
- Adds support for **drush v12**. | ||
- Fixes the issues reported in [#1](https://github.com/vinugawade/ur-cache-cleaner/issues/1) by [@elgandoz](https://github.com/elgandoz). | ||
- Refactors the code for better maintainability and readability. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
const commandExists = require('command-exists').sync; | ||
|
||
/** | ||
* @param {object} cmd | ||
* Checks if a command exists. | ||
* @param {object} cmd - The command object. | ||
* @returns {boolean|string} - Returns true if the command exists, or an error message if it doesn't. | ||
*/ | ||
exports.command = (cmd) => { | ||
var result; | ||
if (commandExists(cmd.name)) { | ||
result = true; | ||
return true; | ||
} else { | ||
result = `${cmd.title} launcher is not installed, Please install it globally on your system.`; | ||
return "Drush launcher is not installed. Please install it globally on your system."; | ||
} | ||
return result; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters