From 31e1d935ee32148f515f996e0a7390f7f6cd6abd Mon Sep 17 00:00:00 2001 From: Vikash Date: Sat, 16 Apr 2016 12:31:45 +0530 Subject: [PATCH 1/4] Fix typo and add more options --- share/goodie/cheat_sheets/json/curl.json | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/share/goodie/cheat_sheets/json/curl.json b/share/goodie/cheat_sheets/json/curl.json index f1eec746a..6adfd4029 100644 --- a/share/goodie/cheat_sheets/json/curl.json +++ b/share/goodie/cheat_sheets/json/curl.json @@ -20,7 +20,8 @@ "Cookies", "Send Data", "Headers", - "Exit Codes" + "Exit Codes", + "Miscellaneous" ], "sections": { @@ -101,7 +102,21 @@ }, { "key": "56", - "val": "The request could not recieve data" + "val": "The request could not receive data" + } + ], + "Miscellaneous": [ + { + "key": "-k / --insecure", + "val": "Allows insecure requests" + }, + { + "key": "-s", + "val": "Hides the progress" + }, + { + "key": "-S", + "val": "Displays error when the request fails(when used with -s)" } ] } From d4fecf5add4099c7ea777b91ab0be342dfc3dd14 Mon Sep 17 00:00:00 2001 From: Vikash Date: Sat, 16 Apr 2016 12:34:52 +0530 Subject: [PATCH 2/4] Change template type :smile: --- share/goodie/cheat_sheets/json/curl.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/goodie/cheat_sheets/json/curl.json b/share/goodie/cheat_sheets/json/curl.json index 6adfd4029..bf22d4e67 100644 --- a/share/goodie/cheat_sheets/json/curl.json +++ b/share/goodie/cheat_sheets/json/curl.json @@ -12,7 +12,7 @@ "curl options" ], - "template_type": "reference", + "template_type": "terminal", "section_order": [ "Basic Usage", @@ -27,7 +27,7 @@ "sections": { "Basic Usage": [ { - "key": "curl [options...] ", + "key": "curl \\[options...\\] ", "val": "Makes a request to the url given" } ], From 7d6e5aada66ad388f493160c06ff361cc3a35e0c Mon Sep 17 00:00:00 2001 From: Vikash Date: Fri, 29 Apr 2016 20:37:30 +0530 Subject: [PATCH 3/4] Add verbose and timeout commands --- share/goodie/cheat_sheets/json/curl.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/share/goodie/cheat_sheets/json/curl.json b/share/goodie/cheat_sheets/json/curl.json index bf22d4e67..b1d746be9 100644 --- a/share/goodie/cheat_sheets/json/curl.json +++ b/share/goodie/cheat_sheets/json/curl.json @@ -1,7 +1,7 @@ { "id": "curl_cheat_sheet", "name": "Curl", - "description": "Displays a list of curl command options", + "description": "A list of curl command and options", "metadata": { "sourceName": "Cheatography", @@ -106,6 +106,14 @@ } ], "Miscellaneous": [ + { + "key": "-v / --verbose", + "val": "Displays data sent and received" + }, + { + "key": "-m / --max-time", + "val": "Maximum time in seconds the command should execute" + }, { "key": "-k / --insecure", "val": "Allows insecure requests" From 37d5186f898af08122d211d65bb5d291bc168ccf Mon Sep 17 00:00:00 2001 From: Vikash Date: Fri, 29 Apr 2016 20:40:24 +0530 Subject: [PATCH 4/4] Update source --- share/goodie/cheat_sheets/json/curl.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/goodie/cheat_sheets/json/curl.json b/share/goodie/cheat_sheets/json/curl.json index b1d746be9..3ecfe0658 100644 --- a/share/goodie/cheat_sheets/json/curl.json +++ b/share/goodie/cheat_sheets/json/curl.json @@ -4,8 +4,8 @@ "description": "A list of curl command and options", "metadata": { - "sourceName": "Cheatography", - "sourceUrl" : "http://www.cheatography.com/ankushagarwal11/cheat-sheets/curl-cheat-sheet/" + "sourceName": "About", + "sourceUrl" : "http://linux.about.com/od/commands/l/blcmdl1_curl.htm" }, "aliases": [