mirror of
https://github.com/grafana/grafana.git
synced 2026-02-26 11:21:19 -05:00
6 lines
205 B
TypeScript
6 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>;
|
|
};
|