本文整理匯總了TypeScript中node-suspect.SpawnChain類的典型用法代碼示例。如果您正苦於以下問題:TypeScript SpawnChain類的具體用法?TypeScript SpawnChain怎麽用?TypeScript SpawnChain使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了SpawnChain類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: testHelpNew
function testHelpNew(proc: SpawnChain, done: () => void) {
return proc
.wait("neon new")
.wait("Create a new Neon project")
.wait("Synopsis")
.wait("$ neon new [@<scope>/]<name>")
.run(err => {
if (err) throw err;
done();
});
}
示例2: testHelpVersion
function testHelpVersion(proc: SpawnChain, done: () => void) {
return proc
.wait("neon version")
.wait("Display the Neon version.")
.wait("Synopsis")
.wait("$ neon version")
.run(err => {
if (err) throw err;
done();
});
}
示例3: testHelpHelp
function testHelpHelp(proc: SpawnChain, done: () => void) {
return proc
.wait("neon help")
.wait("Get help about a Neon command")
.wait("Synopsis")
.wait("$ neon help [command]")
.run(err => {
if (err) throw err;
done();
});
}
示例4: testHelpClean
function testHelpClean(proc: SpawnChain, done: () => void) {
return proc
.wait("neon clean")
.wait("Remove build artifacts from a Neon project.")
.wait("Synopsis")
.wait("$ neon clean [options]")
.wait("$ neon clean [options] module ...")
.wait("Options")
.wait("-p, --path")
.run(err => {
if (err) throw err;
done();
});
}
示例5: testHelpBuild
function testHelpBuild(proc: SpawnChain, done: () => void) {
return proc
.wait("neon build")
.wait("(Re)build a Neon project")
.wait("Synopsis")
.wait("$ neon build [options]")
.wait("$ neon build [options] module ...")
.wait("Options")
.wait("-r, --rust")
.wait("-d, --debug")
.wait("-p, --path")
.run(err => {
if (err) throw err;
done();
});
}
示例6: testHelp
function testHelp(proc: SpawnChain, done: () => void) {
return proc
.wait("Neon")
.wait("native Node.js modules with Rust")
.wait("Synopsis")
.wait("$ neon [options] <command>")
.wait("Command List")
.wait("new")
.wait("build")
.wait("clean")
.wait("version")
.wait("help")
.run(err => {
if (err) throw err;
done();
});
}