import { AuraAPI } from 'core' ; import { resolve } from 'path' ; export async function WindowsTerminalPort ( Aura ) { const { createPort , createReadme , colorSchemes , constants } = Aura ; const { info } = constants ; const portName = 'Windows Terminal' ; const version = '1.0.0' ; const previewURL = `https://github.com/${ info . author . username }/assets/blob/master/images/${ info . slug }/aura-windows-terminal-preview.png?raw=true` ; const templateFolder = resolve ( __dirname , 'templates' ) ; const fixedSelectionBackground = colorSchemes . dark . accent17 . slice ( 0 , - 2 ) ; await createPort ( { template : resolve ( templateFolder , `${ info . slug }.json` ) , replacements : { ... colorSchemes . dark , ... info , accent17 : fixedSelectionBackground , } , } ) ; await createReadme ( { template : resolve ( templateFolder , 'README.md' ) , replacements : { portName , version , previewURL , } , } ) ; }