feat: restore session
This commit is contained in:
@@ -62,6 +62,7 @@ type KeyInput = {
|
||||
};
|
||||
|
||||
import type { BootsequenceAnswers } from "../types";
|
||||
import { writeLock } from "../ui/lock";
|
||||
|
||||
export type BootSequenceUI = {
|
||||
update: (deltaMs: number) => void;
|
||||
@@ -243,7 +244,8 @@ export async function createBootSequenceUI(
|
||||
if (!loggedCompletion) {
|
||||
loggedCompletion = true;
|
||||
console.info("[debug] [bootsequence/questions] finished questions", answers);
|
||||
writeFileSync(join(homedir(), ".deltaboot.json"), JSON.stringify(answers))
|
||||
writeFileSync(join(homedir(), ".deltaboot.json"), JSON.stringify(answers));
|
||||
writeLock(answers);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user