Improve documentation
This commit is contained in:
parent
112cde5544
commit
580dbe2384
1 changed files with 18 additions and 1 deletions
|
|
@ -4,7 +4,24 @@ import path from 'path';
|
|||
import { args, groups } from './module.args';
|
||||
|
||||
const transformService = (str: Array<'funi'|'crunchy'|'hidive'|'all'>) => {
|
||||
return str.join(', ');
|
||||
const services: string[] = [];
|
||||
str.forEach(function(part) {
|
||||
switch(part) {
|
||||
case 'funi':
|
||||
services.push('Funimation');
|
||||
break;
|
||||
case 'crunchy':
|
||||
services.push('Crunchyroll');
|
||||
break;
|
||||
case 'hidive':
|
||||
services.push('Hidive');
|
||||
break;
|
||||
case 'all':
|
||||
services.push('All');
|
||||
break;
|
||||
}
|
||||
});
|
||||
return services.join(', ');
|
||||
};
|
||||
|
||||
let docs = `# ${packageJSON.name} (${packageJSON.version}v)
|
||||
|
|
|
|||
Loading…
Reference in a new issue