mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
7 lines
205 B
TypeScript
7 lines
205 B
TypeScript
|
|
import { Task } from '..';
|
||
|
|
|
||
|
|
export const execTask = async <T>(taskName, options?: T) => {
|
||
|
|
const task = await import(`${__dirname}/../tasks/${taskName}.ts`);
|
||
|
|
return task.default(options) as Task<T>;
|
||
|
|
};
|