-
Notifications
You must be signed in to change notification settings - Fork 1
CLI: Support multiple tasks #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
lgalende
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, we do:
if (...) something()
// or
if (...) {
somethingTooLongThatDoesNotFitOneLine()
}but not:
if (...)
somethingTooLongThatDoesNotFitOneLine()| const tasks = filterTasks(this, allTasks, include, exclude) | ||
| for (const task of tasks) { | ||
| console.log(`\n${log.highlightText(`[${task.name}]`)}`) | ||
| await this.runForTask(task, key, registryUrl, skipCompile, task.output) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite get this, the inputDir param is the task.output?
| const tasks = filterTasks(this, allTasks, include, exclude) | ||
| for (const task of tasks) { | ||
| console.log(`\n${log.highlightText(`[${task.name}]`)}`) | ||
| await this.runForTask(task, key, registryUrl, skipCompile, task.output) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For each task being deployed, all tasks are rebuilt repeatedly. This is O(n^2) and not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| const validNames = new Set(include.filter((name) => taskNames.has(name))) | ||
| if (validNames.size === 0) { | ||
| console.warn(`${log.warnText('Warning:')} No valid tasks to include. All tasks will be skipped.`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.


What Changed:
mimic.yamlconfiguration file support for multi-taskMimicConfigHandlerto load and validatemimic.yamlconfigurations--includeand--excludeflags to all CLI commands for task filteringmimic.yamldoesn't exist