adventofcode/2023/preset/day/preset.ts

21 lines
442 B
TypeScript
Raw Permalink Normal View History

2023-12-01 18:38:44 +00:00
export default definePreset({
name: 'day',
options: {
2023-12-04 17:20:16 +00:00
perl: false,
js: false,
2023-12-01 18:38:44 +00:00
},
handler: async(context) => {
if( context.options.perl ) {
await extractTemplates({
from: 'perl', whenConflict: 'skip'
})
2023-12-04 17:20:16 +00:00
}
if( context.options.js ) {
await extractTemplates({
from: 'js', whenConflict: 'skip'
})
2023-12-01 18:38:44 +00:00
}
// ...
},
})