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:
Hornwitser committed 2020-09-21 18:00:07 +02:00
1 parent bf5a4a8a9c
commit 3485c9ac68
15 files changed
+46 -46

No files matched your search

@@ -522,7 +522,7 @@ class ControlConnector extends link.WebSocketClientConnector {
console.log("SOCKET | registering control");
this.sendHandshake("register_control", {
token: this._token,
agent: "clusterctl",
agent: "clusterioctl",
version: version,
});
}
@@ -577,7 +577,7 @@ class Control extends link.Link {
async function startControl() {
yargs
.scriptName("clusterctl")
.scriptName("clusterioctl")
.usage("$0 <command> [options]")
.option("config", {
nargs: 1,
@@ -591,7 +591,7 @@ async function startControl() {
.strict()
;
const rootCommands = new command.CommandTree({ name: "clusterctl", description: "Manage cluster" });
const rootCommands = new command.CommandTree({ name: "clusterioctl", description: "Manage cluster" });
rootCommands.add(slaveCommands);
rootCommands.add(instanceCommands);
rootCommands.add(permissionCommands);
@@ -741,9 +741,9 @@ I version of clusterio. Expect things to break. I
);
} else {
console.error(`
+-------------------------------+
| Unable to to start clusterctl |
+-------------------------------+`
+---------------------------------+
| Unable to to start clusterioctl |
+---------------------------------+`
);
}
+2 -2
View File
@@ -4,12 +4,12 @@
"author": "Hornwitser",
"license": "MIT",
"version": "2.0.0-alpha0",
"main": "clusterctl.js",
"main": "ctl.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin": {
"clusterctl": "./clusterctl.js"
"clusterioctl": "./ctl.js"
},
"keywords": [
"factorio"