Format with prettier. Use screen mode for invitation import - dialog mode is broken.

This commit is contained in:
2026-03-23 10:15:48 +00:00
parent 7fd89c5663
commit b475b23beb
47 changed files with 1718 additions and 1098 deletions

View File

@@ -1,6 +1,6 @@
/**
* XO Wallet CLI - Terminal User Interface for XO crypto wallet.
*
*
* Features:
* 1. View wallet state and balance
* 2. Create invitations for P2PKH transactions
@@ -9,7 +9,7 @@
* 5. Real-time updates via SSE
*/
import { App } from './app.js';
import { App } from "./app.js";
/**
* Main entry point.
@@ -18,12 +18,12 @@ async function main(): Promise<void> {
try {
// Create and start the application
await App.create({
syncServerUrl: process.env['SYNC_SERVER_URL'] ?? 'http://localhost:3000',
databasePath: process.env['DB_PATH'] ?? './',
databaseFilename: process.env['DB_FILENAME'] ?? 'xo-wallet.db',
syncServerUrl: process.env["SYNC_SERVER_URL"] ?? "http://localhost:3000",
databasePath: process.env["DB_PATH"] ?? "./",
databaseFilename: process.env["DB_FILENAME"] ?? "xo-wallet.db",
});
} catch (error) {
console.error('Failed to start XO Wallet CLI:', error);
console.error("Failed to start XO Wallet CLI:", error);
process.exit(1);
}
}