local-wpcli
Advanced tools
Comparing version 0.3.1 to 0.4.0
@@ -30,3 +30,2 @@ /** | ||
const questions = [ | ||
userInput('dockerId', 'input', 'Enter the Docker ID:', 'Please enter the Docker ID of your website.'), | ||
userInput('remoteHostIP', 'input', 'Enter the IP address of the Remote Host:', 'Please enter the IP address of the Remote Host.'), | ||
@@ -33,0 +32,0 @@ userInput('remoteHostPort', 'input', 'Enter the Port of the Remote Host:', 'Please enter the Port of the Remote Host.'), |
@@ -22,7 +22,3 @@ /** | ||
if (!files.fileExists(file) || force) { | ||
if (filename === '.dockerid') { | ||
fs.writeFile(file, data.dockerId, (err) => { | ||
if (err) throw err; | ||
}); | ||
} else if (filename === 'wp-cli.local.php') { | ||
if (filename === 'wp-cli.local.php') { | ||
fs.writeFile( | ||
@@ -29,0 +25,0 @@ file, |
@@ -41,3 +41,3 @@ /** | ||
// Config files array. | ||
const config_files = ['.dockerid', 'wp-cli.local.php', 'wp-cli.local.yml']; | ||
const config_files = ['wp-cli.local.php', 'wp-cli.local.yml']; | ||
@@ -44,0 +44,0 @@ // Check if config files already exists. |
{ | ||
"name": "local-wpcli", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "A CLI to configure WP-CLI with the websites of Local by Flywheel.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# 📦 local-wpcli (WIP) | ||
# ⚡ local-wpcli | ||
A CLI to configure WP-CLI with the locally hosted websites of [Local by Flywheel](https://local.getflywheel.com/). | ||
@@ -16,9 +16,13 @@ | ||
2. Type `local-wpcli` & press enter. | ||
3. Before creating the configuration files, it will ask | ||
1. Docker ID of your website. | ||
2. Remote Host IP. | ||
3. Remote Host Port. | ||
4. All done. You're good to go 👍 | ||
3. Before creating the configuration files, it will ask for: | ||
1. Remote Host (IP Address) | ||
2. Remote Port | ||
## License & Copyrights | ||
👉 **Note:** You can find *Remote Host* & *Port* in the `DATABASE` tab of the website in Local by Flywheel's desktop app. Please refer to the screenshot below for help. | ||
![](https://cl.ly/ssYK/💯 "Local by Flywheel Screenshot") | ||
## 🎩 License & Attribution | ||
MIT © [Ashar Irfan](https://asharirfan.com). | ||
This project is inspired by [Create Guten Block](https://github.com/ahmadawais/create-guten-block). Thank you [Ahmad Awais](https://twitter.com/MrAhmadAwais) for Create Guten Block. It rocks 🤘 |
7300
28
239