supostool
v0.0.3
Published
帮助调试SupOS平台服务.
Downloads
10
Readme
stool -- supos service manager
stool
can help you easy and fast switch template service
How to configure yarn to use private registry ?
just add .yarnrc in your project’s directory and write there:
registry “http://your.registry”
Or you can configure it in your HOME directory's .yarnrc
Install
$ npm install -g stool
Example
$ stool init
$ stool optWork //switch template
Usage
TODO
Notice
Maintainer is wanted
Contributors
LICENSE
MIT
可编程
- save
可调式
- run
try {
const localScript=await util.readServiceFromLocal(template.enName, service.enName)
// const serviceDiff=jsDiff.applyPatch(localScript,cloudScriptObj.script)
const serviceDiff=jsDiff.diffChars(localScript,cloudScriptObj.script)
// console.log(serviceDiff)
const diffStr=serviceDiff.reduce((acc,part) => {
// green for additions, red for deletions
// grey for common parts
const conext = part.added ? chalk.green(part.value) :
part.removed ? chalk.red(part.value) : chalk.grey(part.value);
acc.push(conext)
return acc;
},[]).join("");
console.log(diffStr)
console.log(localScript,cloudScriptObj.script)
} catch (e) {
printError("==="+e);
}