Skip to content

Commit

Permalink
Change es:indices:list to es:indices:cat to match the ES api
Browse files Browse the repository at this point in the history
  • Loading branch information
rolljee committed Oct 23, 2020
1 parent 917dc0b commit 083946d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Then any argument will be passed as-is to the `sdk:query` method.
* [`kourou document:search INDEX COLLECTION [QUERY]`](#kourou-documentsearch-index-collection-query)
* [`kourou es:indices:get INDEX ID`](#kourou-esindicesget-index-id)
* [`kourou es:indices:insert INDEX`](#kourou-esindicesinsert-index)
* [`kourou es:indices:list`](#kourou-esindiceslist)
* [`kourou es:indices:cat`](#kourou-esindicescat)
* [`kourou file:decrypt FILE`](#kourou-filedecrypt-file)
* [`kourou file:encrypt FILE`](#kourou-fileencrypt-file)
* [`kourou file:test FILE`](#kourou-filetest-file)
Expand Down Expand Up @@ -471,7 +471,7 @@ OPTIONS
--help show CLI help
```

_See code: [src/commands/es/get.ts](src/commands/es/get.ts)_
_See code: [src/commands/es/indices/get.ts](src/commands/es/indices/get.ts)_

## `kourou es:indices:insert INDEX`

Expand All @@ -492,15 +492,15 @@ OPTIONS
--id=id Document ID
```

_See code: [src/commands/es/insert.ts](src/commands/es/insert.ts)_
_See code: [src/commands/es/indices/insert.ts](src/commands/es/indices/insert.ts)_

## `kourou es:indices:list-index`
## `kourou es:indices:cat`

Lists available ES indexes

```
USAGE
$ kourou es:indices:list-index
$ kourou es:indices:cat
OPTIONS
-g, --grep=grep Match output with pattern
Expand All @@ -509,7 +509,7 @@ OPTIONS
--help show CLI help
```

_See code: [src/commands/es/list-index.ts](src/commands/es/list-index.ts)_
_See code: [src/commands/es/indices/cat.ts](src/commands/es/indices/cat.ts)_

## `kourou file:decrypt FILE`

Expand Down
4 changes: 2 additions & 2 deletions features/Elasticsearch.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Feature: Elasticsearch commands
Then I should match stdout with "chuon-chuon-kim"

@mappings
Scenario: List ES indexes
Scenario: Cat ES indexes
Given a collection "nyc-open-data":"green-taxi"
When I run the command "es:indices:list" with flags:
When I run the command "es:indices:cat" with flags:
| --grep | "nyc-open-data" |
Then I should match stdout with "yellow-taxi"
And I should match stdout with "green-taxi"
Expand Down
1 change: 0 additions & 1 deletion features/step_definitions/cli-steps.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ Then('I run the command {string} with args:', async function (command, dataTable
const args = []

for (const row of dataTable.rawTable) {
console.log(row)
args.push(JSON.parse(row[0]))
}

Expand Down
File renamed without changes.

0 comments on commit 083946d

Please sign in to comment.