From 48a1ad52801bb16b034555392d293872f4b8f5f5 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Fri, 1 Sep 2017 19:15:06 +0200 Subject: [PATCH] Better order for .sh commands --- src/providers/sh/index.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/providers/sh/index.js b/src/providers/sh/index.js index f599c9a..6b20de6 100644 --- a/src/providers/sh/index.js +++ b/src/providers/sh/index.js @@ -16,6 +16,11 @@ const mainCommands = new Set([ 'whoami' ]) +const specialCommands = new Set([ + 'deploy', + 'login' +]) + const aliases = { list: ['ls'], remove: ['rm'], @@ -29,12 +34,10 @@ const aliases = { logs: ['log'] } -const specialCommands = [ - 'deploy', - 'login' -] - -const subcommands = new Set([...specialCommands, ...Array.from(mainCommands)]) +const subcommands = new Set([ + ...Array.from(mainCommands), + ...Array.from(specialCommands) +]) // Add aliases to available sub commands for (const alias in aliases) {