Add command to fix templates (#21)

* add command to fix templates

* replaceAll and lint fixes

* fixed menu

* fix lint command and run it

* add basic error handling for listing of templates

* CR suggestions

---------

Co-authored-by: Arwid Thornström <arwidt@gmail.com>
This commit is contained in:
Anders Gustafsson
2024-08-16 09:34:15 +02:00
committed by GitHub
co-authored by Arwid Thornström
parent bc9ba08e76
commit 724f3905ab
28 changed files with 248 additions and 14310 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ module.exports = {
// });
const curratedPipes: Pipeline[] = pipelines.pipelines.filter(Boolean);
const options = curratedPipes.map(item => {
const options = curratedPipes.map((item) => {
return item.name;
});
@@ -44,7 +44,7 @@ module.exports = {
message: 'Choose a pipeline',
limit: options.length - 1,
initial: options.length - 1,
choices: options
choices: options,
});
try {
@@ -104,5 +104,5 @@ module.exports = {
} else {
exit();
}
}
},
};