feat: add color option to CLI and configuration file

The option is used to force enable/disable color output and is passed to the reporter which should respect it
This commit is contained in:
Joakim Carlstein 2023-12-20 09:06:13 +01:00 committed by Joakim Carlstein
parent 7bae76f496
commit f9a16d87a1
14 changed files with 112 additions and 11 deletions

View file

@ -33,6 +33,7 @@ describe('up', () => {
command: 'up',
cwd: '/emigrate',
dry: false,
color: undefined,
version,
directory: 'migrations',
},
@ -111,6 +112,7 @@ describe('up', () => {
cwd: '/emigrate',
version,
dry: false,
color: undefined,
directory: 'migrations',
},
]);
@ -152,6 +154,7 @@ describe('up', () => {
cwd: '/emigrate',
version,
dry: true,
color: undefined,
directory: 'migrations',
},
]);
@ -193,6 +196,7 @@ describe('up', () => {
cwd: '/emigrate',
version,
dry: false,
color: undefined,
directory: 'migrations',
},
]);
@ -219,6 +223,7 @@ describe('up', () => {
cwd: '/emigrate',
version,
dry: false,
color: undefined,
directory: 'migrations',
},
]);
@ -265,6 +270,7 @@ describe('up', () => {
cwd: '/emigrate',
version,
dry: false,
color: undefined,
directory: 'migrations',
},
]);
@ -312,6 +318,7 @@ describe('up', () => {
cwd: '/emigrate',
version,
dry: false,
color: undefined,
directory: 'migrations',
},
]);