version
This commit is contained in:
parent
7f36682b04
commit
a9d9ba82f8
1 changed files with 8 additions and 0 deletions
8
main.ts
8
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,13 @@ const options = {
|
||||||
json: {
|
json: {
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
},
|
},
|
||||||
|
version: {
|
||||||
|
type: "boolean",
|
||||||
|
short: "v",
|
||||||
|
run() {
|
||||||
|
console.log(pkg.version);
|
||||||
|
},
|
||||||
|
},
|
||||||
help: {
|
help: {
|
||||||
type: "boolean",
|
type: "boolean",
|
||||||
short: "h",
|
short: "h",
|
||||||
|
|
Loading…
Add table
Reference in a new issue