From 17b4f1f0c5bb08c0b85e828833d436b88fe19307 Mon Sep 17 00:00:00 2001 From: Sean Hurley Date: Mon, 30 Aug 2021 20:56:33 -0600 Subject: [PATCH] Add elixir as a language option --- docs/commands.md | 1 + lib/config.js | 1 + lib/helper.js | 1 + 3 files changed, 3 insertions(+) diff --git a/docs/commands.md b/docs/commands.md index 9b147707..4192fb8d 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -232,6 +232,7 @@ Display question details. With `-g`/`-l`/`-x`, the code template would be auto g * c * cpp * csharp + * elixir * golang * java * javascript diff --git a/lib/config.js b/lib/config.js index 82cfee17..2f070c0d 100644 --- a/lib/config.js +++ b/lib/config.js @@ -18,6 +18,7 @@ const DEFAULT_CONFIG = { 'c', 'cpp', 'csharp', + 'elixir', 'golang', 'java', 'javascript', diff --git a/lib/helper.js b/lib/helper.js index 9c5ff43f..7ef3b594 100644 --- a/lib/helper.js +++ b/lib/helper.js @@ -34,6 +34,7 @@ const LANGS = [ {lang: 'c', ext: '.c', style: 'c'}, {lang: 'cpp', ext: '.cpp', style: 'c'}, {lang: 'csharp', ext: '.cs', style: 'c'}, + {lang: 'elixir', ext: '.ex', style: '#'}, {lang: 'golang', ext: '.go', style: 'c'}, {lang: 'java', ext: '.java', style: 'c'}, {lang: 'javascript', ext: '.js', style: 'c'},