Skip to content

Commit

Permalink
adding exit codes for failures
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed May 9, 2016
1 parent 3032b52 commit b793984
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
THIS DOCUMENTATION IS A WORK IN PROGRESS.

# Disclaimer
i do not recommend using this module in it's current state.
it uses old and unsupported npm apis and it doesnt use scopes for private namespaces.

i have some much better ideas of how to put something like this together but no time at the moment.
this should at least work and i will accept pull requests :)

[![npm](https://nodei.co/npm/s3npm.png)](https://npmjs.org/package/s3npm)
[![Build Status](https://travis-ci.org/soldair/node-s3-npm.png)](https://travis-ci.org/soldair/node-s3-npm)
Expand Down
19 changes: 16 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,38 @@ module.exports = function(config){
var cmds = {
publish:function(config){
publish(config,function(err,data){
if(err) return log('error',err);
if(err) {
log('error',err);
process.exit(1)
}
log('success',data);
});
},
info:function(config){
info(config,config._[1],function(err,data){
if(err) return log('error',err);
if(err) {
log('error',err);
process.exit(1)
}
log('success',data);
});
},
install:function(config){

install(config,config._[1],function(err,data){
if(err) return log('error',err);
if(err) {
log('error',err);
process.exit(1)
}
if(data) log('success',data);
});
},
configure:function(config){
configure(config,function(){
if(err) {
log('error',err);
process.exit(1)
}
//
log("success","config done");
});
Expand Down

0 comments on commit b793984

Please sign in to comment.