Last active
June 10, 2020 18:30
-
-
Save smks/5df989952900fd4fe9ee4b3fb8bcae1f to your computer and use it in GitHub Desktop.
Revisions
-
smks revised this gist
Jun 2, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ mason .action(setup); mason .command('create <ticketId>') .description('creates a new game') .action(create); -
smks revised this gist
Jun 2, 2018 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const console = require('console'); // commands const create = require('./commands/create'); const setup = require('./commands/setup'); mason .version(version); -
smks revised this gist
Mar 2, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const { version } = require('./package.json'); const console = require('console'); // commands const create = require('./commands/create'); mason .version(version); -
smks revised this gist
Mar 2, 2018 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,21 +5,18 @@ const { version } = require('./package.json'); const console = require('console'); // commands const create = require('./create'); mason .version(version); mason .command('setup [env]') .description('run setup commands for all envs') .action(setup); mason .command('create <ticketId> <deployTo>') .description('creates a new game') .action(create); -
smks revised this gist
Mar 2, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const mason = require('commander'); const { version } = require('./package.json'); const console = require('console'); // commands const setup = require('./setup'); const create = require('./create'); const release = require('./release'); -
smks revised this gist
Mar 2, 2018 . 1 changed file with 0 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -23,12 +23,6 @@ mason .description('creates a new game') .action(create); mason .command('*') .action(() => { -
smks revised this gist
Mar 2, 2018 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,9 +19,8 @@ mason .action(setup); mason .command('create <ticketId>') .description('creates a new game') .action(create); mason -
smks created this gist
Mar 2, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,43 @@ #! /usr/bin/env node const mason = require('commander'); const { version } = require('./package.json'); const console = require('console'); // import commands here const setup = require('./setup'); const create = require('./create'); const release = require('./release'); mason .version(version); mason .command('setup [env]') .description('run setup commands for all envs') .option('-s, --setup_mode [mode]', 'Which setup mode to use') .action(setup); mason .command('create') .description('creates a new game') .option('-t, --game_type [type]', 'Is this a new game or a rerun?') .action(create); mason .command('release [env]') .description('releases a completed promotion') .option('-t, --target [target]', 'dev or prod - dev by default') .action(release); mason .command('*') .action(() => { mason.help(); }); mason.parse(process.argv); if (!mason.args.length) { mason.help(); }