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:
co-authored by
Arwid Thornström
parent
bc9ba08e76
commit
724f3905ab
@@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user