adobe / adobe/aio-cli-plugin-runtime

`api list` to `api get`

Đang mở
#185 5 bình luận 0 reaction 2 người được giao Được @arjuncooliitr nhận Xem trên GitHub
enhancement good first issue
Ngôn ngữ chính
JavaScript
Star
21
Fork
33
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Is your feature request related to a problem? Please describe.**
Currently, `aio rt api list` requires a base path of the api to return results. The behavior of the `list` command is inconsistant with other `list`s (like `action list`). We think `get` may be the better verb here as all other `get`s do expect arg to return results.

```
aio rt api list --help
list route/apis for Adobe I/O Runtime

USAGE
$ aio runtime:route:list [BASEPATH] [RELPATH] [APIVERB]

ARGUMENTS
BASEPATH The base path of the api
RELPATH The path of the api relative to the base path
APIVERB (get|post|put|patch|delete|head|options) The http verb
```

**Describe the solution you'd like**
Instead of `api list`, change the default to `api get` and retain `list` as an alias for openwhisk users

**Additional context**
related to https://github.com/adobe/aio-cli-plugin-runtime/issues/184

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.