Skip to content

Commit a1e4195

Browse files
swissspidyclaude
andauthored
Rename connector status from "not installed" to "uninstalled" (#27)
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 959765d commit a1e4195

3 files changed

Lines changed: 22 additions & 22 deletions

File tree

‎README.md‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ wp connectors list [--status=<status>] [--fields=<fields>] [--format=<format>]
303303
- connected
304304
- active
305305
- installed
306-
- not installed
306+
- uninstalled
307307
---
308308

309309
[--fields=<fields>]
@@ -324,13 +324,13 @@ wp connectors list [--status=<status>] [--fields=<fields>] [--format=<format>]
324324

325325
# List all connectors
326326
$ wp connectors list
327-
+-----------+-----------+-----------------------------------------------+---------------+
328-
| id | name | description | status |
329-
+-----------+-----------+-----------------------------------------------+---------------+
330-
| anthropic | Anthropic | Text generation with Claude. | not installed |
331-
| google | Google | Text and image generation with Gemini... | not installed |
332-
| openai | OpenAI | Text and image generation with GPT and Dall-E | connected |
333-
+-----------+-----------+-----------------------------------------------+---------------+
327+
+-----------+-----------+-----------------------------------------------+-------------+
328+
| id | name | description | status |
329+
+-----------+-----------+-----------------------------------------------+-------------+
330+
| anthropic | Anthropic | Text generation with Claude. | uninstalled |
331+
| google | Google | Text and image generation with Gemini... | uninstalled |
332+
| openai | OpenAI | Text and image generation with GPT and Dall-E | connected |
333+
+-----------+-----------+-----------------------------------------------+-------------+
334334

335335
# List only connected connectors
336336
$ wp connectors list --status=connected

‎features/connectors.feature‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Feature: List and get AI connectors
4141
"""
4242

4343
@require-wp-7.0
44-
Scenario: List connectors shows not-installed status when plugins are absent
44+
Scenario: List connectors shows uninstalled status when plugins are absent
4545
When I run `wp connectors list --format=json`
4646
Then STDOUT should contain:
4747
"""
4848
"name":"OpenAI"
4949
"""
5050
And STDOUT should contain:
5151
"""
52-
"status":"not installed"
52+
"status":"uninstalled"
5353
"""
5454

5555
@require-wp-7.0
@@ -62,7 +62,7 @@ Feature: List and get AI connectors
6262

6363
@require-wp-7.0
6464
Scenario: List connectors supports --status filter
65-
When I run `wp connectors list --status="not installed" --format=json`
65+
When I run `wp connectors list --status=uninstalled --format=json`
6666
Then STDOUT should contain:
6767
"""
6868
"name":"OpenAI"
@@ -85,7 +85,7 @@ Feature: List and get AI connectors
8585
When I run `wp connectors get openai --format=json`
8686
Then STDOUT should be JSON containing:
8787
"""
88-
{"id":"openai","name":"OpenAI","description":"Text and image generation with GPT and Dall-E.","status":"not installed","credentials_url":"https://platform.openai.com/api-keys","api_key":""}
88+
{"id":"openai","name":"OpenAI","description":"Text and image generation with GPT and Dall-E.","status":"uninstalled","credentials_url":"https://platform.openai.com/api-keys","api_key":""}
8989
"""
9090

9191
# TODO: Depends on https://core.trac.wordpress.org/ticket/64819.

‎src/Connectors_Command.php‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Connectors_Command extends WP_CLI_Command {
4141
* - connected
4242
* - active
4343
* - installed
44-
* - not installed
44+
* - uninstalled
4545
* ---
4646
*
4747
* [--fields=<fields>]
@@ -62,13 +62,13 @@ class Connectors_Command extends WP_CLI_Command {
6262
*
6363
* # List all connectors
6464
* $ wp connectors list
65-
* +-----------+-----------+-----------------------------------------------+---------------+
66-
* | id | name | description | status |
67-
* +-----------+-----------+-----------------------------------------------+---------------+
68-
* | anthropic | Anthropic | Text generation with Claude. | not installed |
69-
* | google | Google | Text and image generation with Gemini... | not installed |
70-
* | openai | OpenAI | Text and image generation with GPT and Dall-E | connected |
71-
* +-----------+-----------+-----------------------------------------------+---------------+
65+
* +-----------+-----------+-----------------------------------------------+-------------+
66+
* | id | name | description | status |
67+
* +-----------+-----------+-----------------------------------------------+-------------+
68+
* | anthropic | Anthropic | Text generation with Claude. | uninstalled |
69+
* | google | Google | Text and image generation with Gemini... | uninstalled |
70+
* | openai | OpenAI | Text and image generation with GPT and Dall-E | connected |
71+
* +-----------+-----------+-----------------------------------------------+-------------+
7272
*
7373
* # List only connected connectors
7474
* $ wp connectors list --status=connected
@@ -214,7 +214,7 @@ private function build_connector_item( string $connector_id, array $connector ):
214214
/**
215215
* Returns the status of a connector.
216216
*
217-
* Possible values: 'connected', 'active', 'installed', 'not installed'.
217+
* Possible values: 'connected', 'active', 'installed', 'uninstalled'.
218218
*
219219
* @param string $connector_id The connector ID.
220220
* @param mixed[] $connector Connector settings from wp_get_connectors().
@@ -245,7 +245,7 @@ private function get_connector_status( string $connector_id, array $connector ):
245245
return 'installed';
246246
}
247247

248-
return 'not installed';
248+
return 'uninstalled';
249249
}
250250

251251
/**

0 commit comments

Comments
 (0)