Skip to content

Commit

Permalink
update interner version to v0.0.6-011
Browse files Browse the repository at this point in the history
  • Loading branch information
kuno committed Apr 15, 2011
1 parent f3374f9 commit 2091fc5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion include/config.json
@@ -1,5 +1,5 @@
{
"version":"0.0.6-010",
"version":"0.0.6-011",
"installNPM":true,
"timeFormat":"GMT",
"idLenStandard":8
Expand Down
5 changes: 1 addition & 4 deletions include/meta.js
@@ -1,5 +1,3 @@
var version = '0.0.6pre';

var vStartsFrom = '0.1.14';
var tools = ['python','wget','tar','sed','make','install'];
var npmCouples = [{node:"0.4.0",npm:"0.3.18"},{node:"0.2.3",npm:"0.2.18"}];
Expand All @@ -22,7 +20,7 @@ var seps = sgps.concat(['version', 'localConfigFile',
'timeFormat', 'root', 'recordFile',
'installNPM']);

var optList = ['-v', '--version', '-h', '--help', '-d'];
var optList = ['-v', '--version', '-h', '--help'];
var cmdList = optList.concat(['howto', 'create', 'remove', 'list', 'update', 'find', 'activate', 'deactivate', 'completion']);
var flagList = cmdList.concat(['--app', '--npm']);
var resWords = flagList.concat(['new', 'all', 'stable', 'unstable', 'latest', 'test', 'source']);
Expand All @@ -37,7 +35,6 @@ var site = 'http://www.nodejs.org/'; // Official site
var docs = 'http://www.nodejs.org/docs/'; // official documents
var issues = 'http://github.com/kuno/neco/issues'; // Issues tracker

exports.version = version;
exports.tools = tools;
exports.vStartsFrom = vStartsFrom;
exports.npmCouples = npmCouples;
Expand Down
12 changes: 8 additions & 4 deletions lib/command/option.js
@@ -1,11 +1,15 @@
var util = require('util'),
howto = require('./howto.js'),
version = require('../../include/meta.js').version;
var fs = require('fs'),
path = require('path'),
util = require('util'),
howto = require('./howto.js');

exports.run = function(argv) {
var config = process.neco.config,
pkgJSON = path.join(config.pkgDir, 'package.json'),
version = JSON.parse(fs.readFileSync(pkgJSON, 'utf8')).version;
if (argv.cmd === '-v' || argv.cmd === '--version') {
util.puts(version);
} else if (argv.cmd === '-h' || argv.cmd === '--help' || argv.cmd === '--howto') {
} else if (argv.cmd === '-h' || argv.cmd === '--help') {
howto.run(argv);
}
};
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -13,9 +13,8 @@
},
"dependencies":
{
"npm":">=1.0.0",
"ansi-color":"0.2.1",
"consolemark":">=0.0.1"
"consolemark":">=0.0.2"
},
"bugs":
{
Expand Down

0 comments on commit 2091fc5

Please sign in to comment.