Created
September 18, 2015 10:54
-
-
Save nmabhinandan/231cbc91d13095e0d682 to your computer and use it in GitHub Desktop.
Godep save command for atom text editor. (~/.atom/init.coffee)
This file contains 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
atom.commands.add 'atom-text-editor', 'godep:save', => | |
sys = require('sys') | |
exec = require('child_process').exec | |
godep_save_cmd = "godep save -r" | |
child = exec godep_save_cmd, (error, stdout, stderr) -> | |
console.log('\ngodep stdout: ' + stdout); | |
console.log ('\ngodep stderr: ' + stderr); | |
if error | |
console.log('\ngodep save exec error: ' + error) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment