From a89b737284ba6721da0e0a37f1440f76daea4471 Mon Sep 17 00:00:00 2001 From: phampton Date: Fri, 1 Apr 2016 07:46:53 +0000 Subject: [PATCH 1/2] updating phoenix alias, renamed file. --- .../goodie/cheat_sheets/json/phoenix-mix.json | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 share/goodie/cheat_sheets/json/phoenix-mix.json diff --git a/share/goodie/cheat_sheets/json/phoenix-mix.json b/share/goodie/cheat_sheets/json/phoenix-mix.json new file mode 100644 index 000000000..e63188e22 --- /dev/null +++ b/share/goodie/cheat_sheets/json/phoenix-mix.json @@ -0,0 +1,51 @@ +{ + "id": "phoenix_mix_cheat_sheet", + "name": "Phoenix Mix Tasks", + "description": "Built-in Phoenix-specific Mix tasks", + "metadata": { + "sourceName": "Phoenix", + "sourceUrl": "http://www.phoenixframework.org/docs/mix-tasks" + }, + "aliases": [ + ], + "template_type": "code", + "section_order": [ + "Mix Tasks" + ], + "sections": { + "Mix Tasks": [ + { + "val": "digests and compress static files", + "key": "mix phoenix.digest" + }, + { + "val": "generates a Phoenix channel", + "key": "mix phoenix.gen.channel" + }, + { + "val": "generates controller, model and views for an HTML based resource", + "key": "mix phoenix.gen.html" + }, + { + "val": "generates a controller and model for a JSON based resource", + "key": "mix phoenix.gen.json" + }, + { + "val": "generates an Ecto model", + "key": "mix phoenix.gen.model" + }, + { + "val": "crafts a new Phoenix application", + "key": "mix phoenix.new" + }, + { + "val": "prints all routes", + "key": "mix phoenix.routes" + }, + { + "val": "starts applications and their servers", + "key": "mix phoenix.server" + } + ] + } +} \ No newline at end of file From 0b31ed1d9cca75fdaf205460ae09ce5ef59c112a Mon Sep 17 00:00:00 2001 From: phampton Date: Fri, 1 Apr 2016 12:33:17 +0000 Subject: [PATCH 2/2] removed alias from json file. --- share/goodie/cheat_sheets/json/phoenix-mix.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/share/goodie/cheat_sheets/json/phoenix-mix.json b/share/goodie/cheat_sheets/json/phoenix-mix.json index e63188e22..806b42720 100644 --- a/share/goodie/cheat_sheets/json/phoenix-mix.json +++ b/share/goodie/cheat_sheets/json/phoenix-mix.json @@ -6,9 +6,7 @@ "sourceName": "Phoenix", "sourceUrl": "http://www.phoenixframework.org/docs/mix-tasks" }, - "aliases": [ - ], - "template_type": "code", + "template_type": "terminal", "section_order": [ "Mix Tasks" ],