add version to client

This commit is contained in:
Snazzah 2024-06-22 00:38:42 -05:00
parent 7b9b024f59
commit abc65134fc
Signed by: Snazzah
GPG Key ID: EA479766A94CEB61
2 changed files with 5 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import readline from 'node:readline/promises';
import { parse } from 'ini';
import MDBReader from 'mdb-reader';
import { diff } from 'just-diff';
import { version } from './package.json';
const rl = readline.createInterface({
input: process.stdin,
@ -114,5 +115,8 @@ process.on("SIGINT", () => {
});
rl.close();
console.log(`FDLogUp Client v${version}`);
// "Upload first" option
if (process.argv[2] === '--upload') _upload();

View File

@ -1,5 +1,6 @@
{
"name": "fdlogup-client",
"version": "1.0.0",
"module": "index.ts",
"type": "module",
"scripts": {