Comparing version 0.3.1 to 0.3.2
@@ -102,3 +102,3 @@ 'use strict'; | ||
if (cvsDir && cvsExt) { | ||
if (argv && argv.d) { | ||
if (cmd === 'co' && argv && argv.d) { | ||
cvsDir = `${argv.d}/${cvsDir}`; | ||
@@ -138,4 +138,9 @@ } | ||
if (argv && argv.d) { | ||
cvsFile = `${argv.d}/${data.cvs_files[i]}`; | ||
if (cmd === 'co') { | ||
if (argv && argv.d) { | ||
cvsFile = `${argv.d}/${data.cvs_files[i]}`; | ||
} | ||
else { | ||
cvsFile = data.cvs_files[i]; | ||
} | ||
} | ||
@@ -179,15 +184,10 @@ else { | ||
// Requires a single argument of -d | ||
// Takes an optional argument of -d | ||
gulp.task('cvs:co', function (cb) { | ||
let argv = require('yargs')(process.argv).argv; | ||
if (argv.d && typeof argv.d === 'string') { | ||
// Must change working dir in order for CVS checkout to work. | ||
process.chdir('../'); | ||
cvsProcess('co', argv); | ||
process.chdir(`${__dirname}/../../../`); | ||
} | ||
else { | ||
utils.error('Error: need a -d argument!'); | ||
} | ||
// Must change working dir in order for CVS checkout to work. | ||
process.chdir('../'); | ||
cvsProcess('co', argv); | ||
process.chdir(`${__dirname}/../../../`); | ||
cb(); | ||
@@ -194,0 +194,0 @@ }); |
{ | ||
"name": "fp-cvs", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "CVS extension for Fepper", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -6,3 +6,3 @@ # CVS extension for Fepper | ||
```shell | ||
fp cvs:co -d "top-level directory (just below $CVSROOT)" | ||
fp cvs:co [-d "directory path between $CVSROOT and backend symbolic link"] | ||
fp cvs:st | ||
@@ -9,0 +9,0 @@ fp cvs:up |
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
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
7879