{"size": 418, "ext": "js", "max_stars_repo_path": "src/shared/commands/startApp.js", "max_stars_repo_name": "megbrimef/urso-tools", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/shared/commands/startApp.js", "max_issues_repo_name": "megbrimef/urso-tools", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/shared/commands/startApp.js", "max_forks_repo_name": "megbrimef/urso-tools", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.1538461538, "max_line_length": 73, "alphanum_fraction": 0.7153110048}
import { argv } from 'process';
import makeParamsAsync from './makeParamsAsync';
import { getConfig, getConfigParam } from '../config';
import { runSafeAsync } from './runSafe';

async function startApp() {
    const { configPath } = await makeParamsAsync(argv);
    await runSafeAsync(() => getConfig(configPath));
    return async (cblk) => runSafeAsync(cblk.bind(this, getConfigParam));
}

export default startApp;
