Compare commits
1 commit
1440ea2c5e
...
4eb03c0c0d
Author | SHA1 | Date | |
---|---|---|---|
4eb03c0c0d |
1 changed files with 7 additions and 0 deletions
7
main.ts
7
main.ts
|
@ -3,6 +3,7 @@ import { createBrowser } from "./browser";
|
||||||
import { createDatabase } from "./database";
|
import { createDatabase } from "./database";
|
||||||
import { type Book, createLibrary } from "./library";
|
import { type Book, createLibrary } from "./library";
|
||||||
import { type TPlatform, createPlatform } from "./platform";
|
import { type TPlatform, createPlatform } from "./platform";
|
||||||
|
import * as pkg from "./package.json";
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
db: {
|
db: {
|
||||||
|
@ -156,6 +157,12 @@ const options = {
|
||||||
json: {
|
json: {
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
},
|
},
|
||||||
|
version: {
|
||||||
|
type: "boolean",
|
||||||
|
run() {
|
||||||
|
console.log(pkg.version);
|
||||||
|
},
|
||||||
|
},
|
||||||
help: {
|
help: {
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
short: "h",
|
short: "h",
|
||||||
|
|
Loading…
Add table
Reference in a new issue