import * as config from './config' import * as taskIndex from '@tlecommunity/super-tasks' import { login } from '@tlecommunity/super-core' let run = async (name, options) => { const cfg = config.load() await login({ empire: cfg.empire, password: cfg.password, server: cfg.server, apiKey: cfg.apiKey, }) await taskIndex.getTaskByName(name).run(options) } export { run }