Comparing version 0.0.4 to 0.1.0
@@ -17,3 +17,2 @@ var myCli = require('../kit/cli'); | ||
var branchList = kit.getBranchList(root); | ||
branchList.unshift(pathname.trunkName); | ||
@@ -20,0 +19,0 @@ var currBranch = kit.getCurrBranch(root); |
@@ -71,3 +71,2 @@ var path = require('path'); | ||
var promptCheckout = function(){ | ||
branchList.unshift(pathname.trunkName); | ||
myCli | ||
@@ -74,0 +73,0 @@ .begin() |
@@ -56,2 +56,4 @@ var fs = require('fs'); | ||
var branchList = readDir(pathname.branchPath); | ||
branchList.unshift(pathname.trunkName); | ||
return branchList; | ||
@@ -63,3 +65,3 @@ }; | ||
var pattern = /RewriteRule\s\.\*\s\w+\:\/\/[\w\.]+\/([\w\/]+)\/\$0\s\[P\]/; | ||
var pattern = /RewriteRule\s\.\*\s\w+\:\/\/[\w\.]+\/([\w\/\-]+)\/\$0\s\[P\]/; | ||
var branch = pattern.test(ruleCnt) && pattern.exec(ruleCnt)[1]; | ||
@@ -66,0 +68,0 @@ if(branch){ |
@@ -162,6 +162,2 @@ /** | ||
module.exports = new NodeCli(); | ||
//Reset console when program exits | ||
module.exports.reset(); | ||
module.exports = new NodeCli(); |
15
main.js
#!/usr/bin/env node | ||
var program = require('commander'); | ||
var config = require('./kit/config'); | ||
var completion = require('./kit/cmd').completion( | ||
['init', 'use', 'checkout', 'branch', 'status'], | ||
['h', 'V'], | ||
['help', 'version'] | ||
); | ||
if(completion){ | ||
return completion; | ||
} | ||
program.version(config().pkg.version); | ||
@@ -30,7 +39,7 @@ | ||
}, | ||
{ | ||
/*{ | ||
command: 'goto', | ||
description: 'goto the working directory', | ||
action: require('./action/goto') | ||
}, | ||
},*/ | ||
{ | ||
@@ -37,0 +46,0 @@ command: 'status', |
@@ -18,3 +18,3 @@ { | ||
], | ||
"version": "0.0.4", | ||
"version": "0.1.0", | ||
"repository": { | ||
@@ -21,0 +21,0 @@ "type": "git", |
@@ -7,2 +7,4 @@ #Iqiyi Front-end Dev Tool | ||
$ iqiyi completion install | ||
$ iqiyi -h |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30048
22
942
9
13