Created
May 26, 2017 06:29
-
-
Save JBreit/f8802c80e37b55bd55e929505e620b75 to your computer and use it in GitHub Desktop.
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 characters
| #!/usr/bin/env node | |
| const { log } = require('./logger'); | |
| switch (process.argv[2]) { | |
| case 'start': | |
| log('start command detected'); | |
| break; | |
| case 'stop': | |
| log('stop command detected'); | |
| break; | |
| case 'test': | |
| log('test command detected'); | |
| break; | |
| case 'help': | |
| log('help command detected'); | |
| break; | |
| default: | |
| log('no command given'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment