]>
Commit | Line | Data |
---|---|---|
1f79cc8c | 1 | let method2cmd = { |
37d44f8e DC |
2 | GET: 'get', |
3 | POST: 'create', | |
4 | PUT: 'set', | |
5 | DELETE: 'delete' | |
6 | }; | |
7 | ||
1f79cc8c TL |
8 | function cliUsageRenderer(method, path) { |
9 | return `<tr><td> </td></td><tr><td>CLI:</td><td>pvesh ${method2cmd[method]} ${path}</td></tr></table>`; | |
61568a65 | 10 | } |