feat: add auto update support (#65)

This commit is contained in:
2026-05-16 00:09:14 -07:00
committed by GitHub
parent 105713361e
commit 91a01b86a9
71 changed files with 2368 additions and 188 deletions
+5 -1
View File
@@ -66,6 +66,9 @@ function createDeps() {
logInfo: (message: string) => {
logs.push(`i:${message}`);
},
logDebug: (message: string) => {
logs.push(`d:${message}`);
},
logWarn: (message: string) => {
logs.push(`w:${message}`);
},
@@ -102,7 +105,8 @@ test('cli command context log methods map to deps loggers', () => {
const { deps, getLogs } = createDeps();
const context = createCliCommandContext(deps);
context.log('info');
context.logDebug('debug');
context.warn('warn');
context.error('error', new Error('x'));
assert.deepEqual(getLogs(), ['i:info', 'w:warn', 'e:error']);
assert.deepEqual(getLogs(), ['i:info', 'd:debug', 'w:warn', 'e:error']);
});