Compare commits
3 commits
4eb03c0c0d
...
1440ea2c5e
Author | SHA1 | Date | |
---|---|---|---|
1440ea2c5e | |||
f2c56009b5 | |||
a9d9ba82f8 |
4 changed files with 15 additions and 6 deletions
|
@ -9,8 +9,8 @@ $ npx https://git.fogtype.com/nebel/gadl/archive/main.tar.gz --help
|
|||
|
||||
## Supported Sites
|
||||
|
||||
- [x] DMM ブックス (漫画)
|
||||
- [ ] Google Play ブックス (漫画)
|
||||
- DMM ブックス (漫画)
|
||||
- Google Play ブックス (漫画)
|
||||
|
||||
## License
|
||||
|
||||
|
|
11
main.ts
11
main.ts
|
@ -159,6 +159,7 @@ const options = {
|
|||
},
|
||||
version: {
|
||||
type: "boolean",
|
||||
short: "v",
|
||||
run() {
|
||||
console.log(pkg.version);
|
||||
},
|
||||
|
@ -170,7 +171,15 @@ const options = {
|
|||
console.log(
|
||||
[
|
||||
"Available options:",
|
||||
...Object.keys(options).map((option) => ` --${option}`),
|
||||
...Object.entries(options).map((option) =>
|
||||
[
|
||||
` --${option[0]}`,
|
||||
"short" in option[1] && ` -${option[1].short}`,
|
||||
option[1].type === "string" && "=<value>",
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(""),
|
||||
),
|
||||
].join("\n"),
|
||||
);
|
||||
},
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@fogtype/gadl",
|
||||
"version": "0.1.0",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@fogtype/gadl",
|
||||
"version": "0.1.0",
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"fflate": "^0.8.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@fogtype/gadl",
|
||||
"version": "0.1.0",
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0",
|
||||
"type": "module",
|
||||
"bin": "bin/run.js",
|
||||
|
|
Loading…
Add table
Reference in a new issue