Skip to content

Instantly share code, notes, and snippets.

@nmabhinandan
Created September 18, 2015 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmabhinandan/231cbc91d13095e0d682 to your computer and use it in GitHub Desktop.
Save nmabhinandan/231cbc91d13095e0d682 to your computer and use it in GitHub Desktop.
Godep save command for atom text editor. (~/.atom/init.coffee)
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