Skip to content

Commit

Permalink
programmatically load version and prepare for 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lujiajing1126 committed Jan 7, 2019
1 parent f6b4d0f commit 09da12f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
const program = require('commander');
const url = require('url');
const RedisClient = require('./lib/redis').RedisClient;
const version = require('./package.json').version;

program.version('1.1.2')
program.version(version)
.usage("rdcli [OPTIONS] [cmd [arg [arg ...]]]")
.option("-h, --host <hostname>", 'Server hostname (default: 127.0.0.1).')
.option("-p, --port <port>", "Server port (default: 6379).", parseInt)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redis-cli",
"version": "1.1.2",
"version": "1.2.0",
"description": "A Redis Cli Tool",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 09da12f

Please sign in to comment.