mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 15:24:52 +09:00
Remove playerManager specific CLI tool
Remove the playerManager plugin specific CLI tool delete_players.js
This commit is contained in:
1 parent
bc41f7afa6
commit
5858d97857
3 files changed
+1
-20
No files matched your search
@@ -49,6 +49,7 @@ Version 2.0.0
|
||||
- Removed broken remote combinator signaling.
|
||||
- Removed factorio_version from config. The version installed is auto
|
||||
detected and used instead.
|
||||
- Removed the playerManager specific command CLI tools/delete_player.js.
|
||||
|
||||
### Breaking Changes
|
||||
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
const needle = require("needle")
|
||||
const config = require("./../config.json")
|
||||
const cli = require("cli")
|
||||
|
||||
let options = cli.parse({
|
||||
name: ["n", "Name of the player to delete, case sensitive", "string"],
|
||||
token: [false, "Factorio auth token", "string", config.masterAuthToken]
|
||||
})
|
||||
if(!options.name){
|
||||
cli.getUsage()
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
needle.post(config.masterURL+"/api/playerManager/deletePlayer", {
|
||||
name: options.name,
|
||||
token: options.token
|
||||
}, (err, resp) => {
|
||||
console.log(resp.body)
|
||||
});
|
||||
@@ -35,7 +35,6 @@
|
||||
"bcrypt": "^3.0.6",
|
||||
"bcrypt-promise": "^2.0.0",
|
||||
"body-parser": "^1.18.2",
|
||||
"cli": "^1.0.1",
|
||||
"cli-interact": "^0.1.9",
|
||||
"compression": "^1.7.2",
|
||||
"cookie-parser": "^1.4.3",
|
||||
|
||||
Reference in new issue
Block a user