|
@@ -68,14 +68,14 @@ export async function compareAndWriteFile(linesA: string[], filePath: string) {
|
|
|
|
|
|
|
|
export const withBannerArray = (title: string, description: string[], date: Date, content: string[]) => {
|
|
export const withBannerArray = (title: string, description: string[], date: Date, content: string[]) => {
|
|
|
return [
|
|
return [
|
|
|
- '########################################',
|
|
|
|
|
|
|
+ '#########################################',
|
|
|
`# ${title}`,
|
|
`# ${title}`,
|
|
|
`# Last Updated: ${date.toISOString()}`,
|
|
`# Last Updated: ${date.toISOString()}`,
|
|
|
`# Size: ${content.length}`,
|
|
`# Size: ${content.length}`,
|
|
|
...description.map(line => (line ? `# ${line}` : '#')),
|
|
...description.map(line => (line ? `# ${line}` : '#')),
|
|
|
- '########################################',
|
|
|
|
|
|
|
+ '#########################################',
|
|
|
...content,
|
|
...content,
|
|
|
- '################# END ###################'
|
|
|
|
|
|
|
+ '################## EOF ##################'
|
|
|
];
|
|
];
|
|
|
};
|
|
};
|
|
|
|
|
|