run deno fmt
parent
4d65d0acef
commit
6f396d012c
10
s3si.ts
10
s3si.ts
|
|
@ -4,7 +4,13 @@ import { flags } from "./deps.ts";
|
||||||
|
|
||||||
const parseArgs = (args: string[]) => {
|
const parseArgs = (args: string[]) => {
|
||||||
const parsed = flags.parse(args, {
|
const parsed = flags.parse(args, {
|
||||||
string: ["profilePath", "exporter", "skipMode", "listMethod", "nxapiPresenceUrl"],
|
string: [
|
||||||
|
"profilePath",
|
||||||
|
"exporter",
|
||||||
|
"skipMode",
|
||||||
|
"listMethod",
|
||||||
|
"nxapiPresenceUrl",
|
||||||
|
],
|
||||||
boolean: ["help", "noProgress", "monitor", "withSummary"],
|
boolean: ["help", "noProgress", "monitor", "withSummary"],
|
||||||
alias: {
|
alias: {
|
||||||
"help": "h",
|
"help": "h",
|
||||||
|
|
@ -15,7 +21,7 @@ const parseArgs = (args: string[]) => {
|
||||||
"skipMode": ["s", "skip-mode"],
|
"skipMode": ["s", "skip-mode"],
|
||||||
"withSummary": "with-summary",
|
"withSummary": "with-summary",
|
||||||
"listMethod": "list-method",
|
"listMethod": "list-method",
|
||||||
"nxapiPresenceUrl": ["nxapi-presence"]
|
"nxapiPresenceUrl": ["nxapi-presence"],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
return parsed;
|
return parsed;
|
||||||
|
|
|
||||||
|
|
@ -412,9 +412,14 @@ export class App {
|
||||||
await this.exportOnce();
|
await this.exportOnce();
|
||||||
}
|
}
|
||||||
if (isSplatoon3Active !== this.splatoon3PreviouslyActive) {
|
if (isSplatoon3Active !== this.splatoon3PreviouslyActive) {
|
||||||
this.env.logger.debug("Splatoon 3 status has changed from", this.splatoon3PreviouslyActive, "to", isSplatoon3Active)
|
this.env.logger.debug(
|
||||||
|
"Splatoon 3 status has changed from",
|
||||||
|
this.splatoon3PreviouslyActive,
|
||||||
|
"to",
|
||||||
|
isSplatoon3Active,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
this.splatoon3PreviouslyActive = isSplatoon3Active
|
this.splatoon3PreviouslyActive = isSplatoon3Active;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async monitor() {
|
async monitor() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue