Mario Campos
|
fcd8d74cda
|
Refactor output-caching functions to accept file path dependency
This makes it easier to test. Credit to @mbg.
|
2026-08-14 14:41:04 -05:00 |
|
Mario Campos
|
b5d34388b7
|
Refactor tests in output-cache.test.ts to use named imports from output-cache
|
2026-08-14 14:28:17 -05:00 |
|
Mario Campos
|
1f46830a1f
|
Fix VersionInfo derived type to pass linter
|
2026-08-14 14:24:37 -05:00 |
|
Mario Campos
|
b60777a215
|
Delete unnecessary statement from JSDoc comments
|
2026-08-14 14:05:42 -05:00 |
|
Mario Campos
|
f3deecb42d
|
Refactor OutputCache with json module
|
2026-08-14 11:38:38 -05:00 |
|
Mario Campos
|
c8ba2d2a05
|
Refactor isVersionInfo with json module
|
2026-08-14 11:35:14 -05:00 |
|
Mario Campos
|
d7d901a925
|
Refactor tests to use getCommandCacheFilePath
As well as fixup a few other problems.
|
2026-08-14 10:56:07 -05:00 |
|
Mario Campos
|
cb9d39fcc1
|
Export getCommandCacheFilePath function for use in tests
|
2026-08-14 10:55:33 -05:00 |
|
Mario Campos
|
93d793c5fe
|
Use json module for JSON validation in output-cache
|
2026-08-13 23:19:37 -05:00 |
|
Mario Campos
|
c56f48e9bd
|
Log unexpected conditions during caching CLI output
|
2026-08-13 09:14:00 -05:00 |
|
Mario Campos
|
43250d671a
|
Change cache key to string type to include CLI args
|
2026-08-13 08:59:09 -05:00 |
|
Mario Campos
|
2d49edbac6
|
Re-order env to be first argument for consistency
|
2026-08-13 08:13:49 -05:00 |
|
Mario Campos
|
6dc633238e
|
Bolster output-cache unit tests with more test cases
|
2026-08-12 13:45:22 -05:00 |
|
Mario Campos
|
6c0d9018d4
|
Change OutputCache to use object for entries
This will ensure it works nicely with `JSON.stringify`. And, then we can validate the type before marshaling.
|
2026-08-12 12:01:20 -05:00 |
|
Mario Campos
|
bf96b0df93
|
Expand test to ensure it does not throw an exception
|
2026-08-12 11:39:32 -05:00 |
|
Mario Campos
|
337136ab8a
|
Rename CommandCacheRecord -> OutputCache
|
2026-08-12 11:29:11 -05:00 |
|
Mario Campos
|
a9baab8dee
|
Export CLI cache types
|
2026-08-12 11:26:52 -05:00 |
|
Mario Campos
|
33d70867d5
|
Pass environment explicitly to CLI caching functions
|
2026-08-12 11:24:37 -05:00 |
|
Mario Campos
|
40f80a8df0
|
Rename type to better match generic intention
|
2026-08-11 18:09:09 -05:00 |
|
Mario Campos
|
b222c3aaea
|
Generalize file cache data structure
|
2026-08-11 18:09:09 -05:00 |
|
Mario Campos
|
11569df0a1
|
Update JSDoc of getCachedCodeQlVersion
|
2026-08-11 15:55:16 -05:00 |
|
Mario Campos
|
0a99875ae5
|
Move VersionInfo-related types to cli/output-cache.ts
This brings them out of the crowded all-purpose `util.ts` and into `cli/output-cache.ts` where they are exclusively used.
|
2026-08-11 15:55:15 -05:00 |
|
Mario Campos
|
246018e041
|
Move VersionInfo to dedicated module
|
2026-08-11 15:55:15 -05:00 |
|
Mario Campos
|
1332611f51
|
Move cache-related util functions into dedicated module
|
2026-08-11 15:55:15 -05:00 |
|
Mario Campos
|
4dc327a942
|
Introduce basic cli/output-cache.ts module
|
2026-08-11 15:36:17 -05:00 |
|