Skip to content

Commit e505bff

Browse files
author
Hiroki Konishi
committed
Add: curl rules for general HTTP method boilerplate
1 parent 56c6df9 commit e505bff

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

rules/curl_pmy_rules.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"regexpLeft": "^curl [^@]*$",
4+
"cmdGroups": [
5+
{
6+
"tag": "",
7+
"stmt": "%curl/methods",
8+
"after": "awk '{print $0}'"
9+
}
10+
],
11+
"bufferLeft": "[]",
12+
"bufferRight": "[]"
13+
}
14+
]

snippets/curl/methods.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-X POST -H "Content-type: application/json" --data
2+
-X PATCH -H "Content-type: application/json" --data
3+
-X GET
4+
-X DELETE

0 commit comments

Comments
 (0)