Format with prettier. Use screen mode for invitation import - dialog mode is broken.
This commit is contained in:
12
src/index.ts
12
src/index.ts
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user