twitchdropsminer-cli 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/run.js +1 -0
- package/dist/cli/index.js +1 -1
- package/package.json +2 -1
package/dist/cli/commands/run.js
CHANGED
|
@@ -5,6 +5,7 @@ export const runCommand = new Command("run")
|
|
|
5
5
|
.description("Run the Twitch drops miner")
|
|
6
6
|
.option("-v, --verbose", "Enable verbose logging")
|
|
7
7
|
.option("--dry-run", "Log intended actions only; no spade POST or claim GQL")
|
|
8
|
+
.option("--no-lock", "Skip single-instance lock (use if a previous run left a stale lock)")
|
|
8
9
|
.action(async (opts) => {
|
|
9
10
|
if (opts.verbose) {
|
|
10
11
|
process.env.TDM_LOG_LEVEL = "debug";
|
package/dist/cli/index.js
CHANGED
|
@@ -16,7 +16,7 @@ program
|
|
|
16
16
|
.description("Twitch Drops Miner CLI (headless)")
|
|
17
17
|
.version("0.1.0");
|
|
18
18
|
program.hook("preAction", (_thisCommand, actionCommand) => {
|
|
19
|
-
if (actionCommand.name() === "run") {
|
|
19
|
+
if (actionCommand.name() === "run" && !actionCommand.getOptionValue("noLock")) {
|
|
20
20
|
ensureSingleInstanceLock();
|
|
21
21
|
}
|
|
22
22
|
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twitchdropsminer-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Headless CLI rewrite of DevilXD/TwitchDropsMiner for mining Twitch drops on servers.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"tdm": "dist/cli/index.js"
|
|
7
7
|
},
|
|
8
8
|
"main": "dist/cli/index.js",
|
|
9
9
|
"files": [
|
|
10
|
+
"README.md",
|
|
10
11
|
"dist",
|
|
11
12
|
"docs/ops",
|
|
12
13
|
"resources/systemd"
|