mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-17 11:59:30 +00:00
Improve action log display with control chars (#23820)
Close #23680 Some CLI programs use "\r" and control chars to print new content in current line. So, the strings in one line are actually from `\rReading...1%\rReading...5%\rReading...100%` This PR tries to make the output better.
This commit is contained in:
parent
9a30b2eafa
commit
aa9c920980
5 changed files with 92 additions and 3 deletions
|
@ -2,6 +2,7 @@ import {defineConfig} from 'vitest/dist/config.js';
|
|||
import {readFile} from 'node:fs/promises';
|
||||
import {dataToEsm} from '@rollup/pluginutils';
|
||||
import {extname} from 'node:path';
|
||||
import vue from '@vitejs/plugin-vue';
|
||||
|
||||
function stringPlugin() {
|
||||
return {
|
||||
|
@ -28,5 +29,6 @@ export default defineConfig({
|
|||
},
|
||||
plugins: [
|
||||
stringPlugin(),
|
||||
vue(),
|
||||
],
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue