clusterluck
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -16,3 +16,3 @@ #!/usr/local/bin/node | ||
const argv = require("yargs") | ||
.usage("Usage: $0 -h localhost -p 7021 -a '' -I foo") | ||
.usage("Usage: $0 [OPTIONS] [cmd [arg [arg ...]]]") | ||
.demand([]) | ||
@@ -67,2 +67,7 @@ .help("help") | ||
stop() { | ||
this._ipc.disconnect(this._id); | ||
return this; | ||
} | ||
send(comm, message, cb) { | ||
@@ -265,6 +270,17 @@ const data = Buffer.from(JSON.stringify({event: comm, data: message})); | ||
client.once("connect", () => { | ||
vorpal | ||
.delimiter("> ") | ||
.show(); | ||
if (argv._.length === 0) { | ||
vorpal | ||
.delimiter("> ") | ||
.show(); | ||
} else { | ||
vorpal.exec(argv._, function (err, res) { | ||
client.stop(); | ||
if (err) { | ||
process.exit(1); | ||
} else { | ||
process.exit(0); | ||
} | ||
}); | ||
} | ||
}); | ||
}); |
{ | ||
"name": "clusterluck", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Distributed systems library for gossip protocols, consistent hash rings, and vector clocks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -65,3 +65,2 @@ Clusterluck | ||
- [Vector Clocks](#VectorClocks) | ||
- [ChangeLog](#ChangeLog) | ||
- [TODO](#TODO) | ||
@@ -460,17 +459,2 @@ | ||
### <a name="ChangeLog"></a>ChangeLog | ||
- 1.1.3: | ||
- README fixes for command descriptions. | ||
- 1.1.2: | ||
- Remove TODOs from bin/cli. | ||
- 1.1.1: | ||
- Grammatical fixes to README. | ||
- 1.1.0: | ||
- Add timeouts on GenServer request streams. | ||
- Emit stream error on closed socket connection. | ||
- Additional documentation. | ||
- Dawn of time (unversioned up to 1.0.0): | ||
- Check the commit history for details (about code changes, dawn of time undocumented). | ||
### <a name="TODO"></a>TODO | ||
@@ -477,0 +461,0 @@ |
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
419272
52
11922
465