How to use the bolt.getProject function in bolt

To help you get started, we’ve selected a few bolt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wwselleck / bolt-interactive / src / prompts / commands / run.ts View on Github external
async function getScriptsFromScope(scope: Scope): Promise {
  if (scope.kind === ScopeType.PROJECT) {
    return Object.keys((await getProject()).config.scripts);
  } else if (scope.kind === ScopeType.SELECT || scope.kind === ScopeType.ALL) {
    return Promise.resolve(getScriptsIntersection(scope.workspaces));
  }
}