emotionctl
Version:
A secure terminal-based journaling system designed as a safe space for developers going through heartbreak, breakups, or betrayal
84 lines • 1.99 kB
TypeScript
import { AuthManager } from './AuthManager';
import { JournalManager } from './JournalManager';
import { ReadOptions } from '../types';
export declare class CLIInterface {
private authManager;
private journalManager;
private currentPassword;
private inquirer;
private chalk;
constructor(authManager: AuthManager, journalManager: JournalManager);
/**
* Dynamically imports inquirer
*/
private getInquirer;
/**
* Dynamically imports chalk
*/
private getChalk;
/**
* Displays the welcome banner
*/
private displayBanner;
/**
* Prompts for password with confirmation
*/
private promptPassword;
/**
* Authenticates the user
*/
private authenticate;
/**
* Initializes a new journal
*/
initializeJournal(): Promise<void>;
/**
* Writes a new journal entry
*/
writeEntry(title?: string): Promise<void>;
/**
* Edits an existing journal entry
*/
editEntry(id?: string): Promise<void>;
/**
* Reads journal entries
*/
readEntries(options: ReadOptions): Promise<void>;
/**
* Deletes a journal entry
*/
deleteEntry(id?: string): Promise<void>;
/**
* Creates a backup
*/
createBackup(outputPath?: string): Promise<void>;
/**
* Restores from backup
*/
restoreBackup(inputPath?: string): Promise<void>;
/**
* Changes the password
*/
changePassword(): Promise<void>;
/**
* Interactive mode
*/
interactiveMode(): Promise<void>;
/**
* Displays journal statistics
*/
private displayStats;
/**
* Resets the journal (deletes all data)
*/
resetJournal(): Promise<void>;
/**
* Opens the built-in editor for content input
*/
private openEditor;
/**
* Fallback to system editor (notepad on Windows)
*/
private openSystemEditor;
}
//# sourceMappingURL=CLIInterface.d.ts.map