|
|
|
|
|
|
|
|
const processedArgs = cliargs(process.argv.slice(2)); |
|
|
const processedArgs = cliargs(process.argv.slice(2)); |
|
|
|
|
|
|
|
|
const __ALIAS__STAMP__ = '9e7bebe0-1f57-11ec-8f88-778ffeea9d1b' |
|
|
const __ALIAS__STAMP__ = '9e7bebe0-1f57-11ec-8f88-778ffeea9d1b' |
|
|
|
|
|
|
|
|
var shell_verse = cli.shell_verse; |
|
|
|
|
|
const getVersion = cli.shell_verse.getVersion |
|
|
|
|
|
|
|
|
const BUILD_VERSION = '[VI]Version: {version} - built on {date}[/VI]'; |
|
|
const runtimestamp = processedArgs.runtimestamp ? (new Date(processedArgs.runtimestamp)).getTime() : (new Date()).getTime(); |
|
|
const runtimestamp = processedArgs.runtimestamp ? (new Date(processedArgs.runtimestamp)).getTime() : (new Date()).getTime(); |
|
|
|
|
|
function getVersion() { return BUILD_VERSION; } |
|
|
|
|
|
|
|
|
var defaultowner = 'chess'; |
|
|
var defaultowner = 'chess'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}()); |
|
|
}()); |
|
|
|
|
|
|
|
|
|
|
|
function isWin(){ return /^win/.test(process.platform) } |
|
|
|
|
|
if(isWin()) { |
|
|
|
|
|
var win_verse = require('./win_verse') |
|
|
|
|
|
var shell_verse = win_verse; |
|
|
|
|
|
shell_verse.getVersion = getVersion |
|
|
|
|
|
} |
|
|
|
|
|
else { |
|
|
|
|
|
var lin_verse = require('./lin_verse') |
|
|
|
|
|
var shell_verse = lin_verse; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// SAM : TODO Use nodeshellexec where to detect git installation dir |
|
|
// SAM : TODO Use nodeshellexec where to detect git installation dir |
|
|
var gitbash = shell_verse.getbash() |
|
|
var gitbash = shell_verse.getbash() |
|
|
|
|
|
|