mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 07:43:12 +09:00
Rename clusterctl to clusterioctl
Rename the clusterctl command line utility to clusterioctl in order to be consistent with the naming of the commands for master and slave.
This commit is contained in:
1 parent
bf5a4a8a9c
commit
3485c9ac68
15 files changed
+46
-46
No files matched your search
@@ -2,14 +2,14 @@
|
||||
const assert = require("assert").strict;
|
||||
|
||||
const { testLines } = require("./lib/factorio/lines");
|
||||
const clusterctl = require("@clusterio/ctl/clusterctl.js");
|
||||
const clusterioctl = require("@clusterio/ctl/ctl.js");
|
||||
|
||||
|
||||
describe("clusterctl", function() {
|
||||
describe("clusterioctl", function() {
|
||||
describe("formatOutputColored()", function() {
|
||||
it("should pass the test lines", function() {
|
||||
for (let [reference, output] of testLines) {
|
||||
let line = clusterctl._formatOutputColored(output);
|
||||
let line = clusterioctl._formatOutputColored(output);
|
||||
// Strip colours
|
||||
line = line.replace(/\x1B\[\d+m/g, "");
|
||||
assert.deepEqual(line, reference);
|
||||
@@ -29,7 +29,7 @@ describe("Integration of Clusterio", function() {
|
||||
});
|
||||
|
||||
|
||||
describe("clusterctl", function() {
|
||||
describe("clusterioctl", function() {
|
||||
describe("slave list", function() {
|
||||
it("runs", async function() {
|
||||
await execCtl("slave list");
|
||||
|
||||
@@ -29,7 +29,7 @@ class TestControl extends link.Link {
|
||||
|
||||
class TestControlConnector extends link.WebSocketClientConnector {
|
||||
register() {
|
||||
this.sendHandshake("register_control", { token: this.token, agent: "clusterctl", version: "test" });
|
||||
this.sendHandshake("register_control", { token: this.token, agent: "clusterioctl", version: "test" });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user