|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#!/usr/bin/env node |
|
|
|
|
|
|
|
|
|
|
|
// PB : TODO -- make sure folder context is proper coz we can now run elxr from anywhere. |
|
|
|
|
|
|
|
|
// -------------- |
|
|
// -------------- |
|
|
// elxr |
|
|
// elxr |
|
|
// A cli tool for elixr. |
|
|
// A cli tool for elixr. |
|
|
|
|
|
|
|
|
// git push origin master |
|
|
// git push origin master |
|
|
|
|
|
|
|
|
var repo = processedArgs._[1]; |
|
|
var repo = processedArgs._[1]; |
|
|
var defaultRepoServer = reposervers[0] |
|
|
|
|
|
var reposervers = [ |
|
|
var reposervers = [ |
|
|
'http://git.bbh' |
|
|
'http://git.bbh' |
|
|
, '//172.16.0.27/repos' |
|
|
, '//172.16.0.27/repos' |
|
|
] |
|
|
] |
|
|
|
|
|
var defaultRepoServer = reposervers[0] |
|
|
|
|
|
|
|
|
var sequentialTaskShellCommands = []; |
|
|
var sequentialTaskShellCommands = []; |
|
|
if(!existsSync(`Z:/${repo}.git`)){ |
|
|
if(!existsSync(`Z:/${repo}.git`)){ |