How to use the ern-cauldron-api.cauldronRepositories.list function in ern-cauldron-api

To help you get started, we’ve selected a few ern-cauldron-api 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 electrode-io / electrode-native / ern-local-cli / src / commands / cauldron / repo / list.ts View on Github external
export const commandHandler = async () => {
  const repositories = cauldronRepositories.list()
  if (!repositories) {
    throw new Error('No Cauldron repositories have been added yet')
  }
  log.info('[Cauldron Repositories]')
  repositories.forEach(repo => log.info(`${repo.alias} -> ${repo.url}`))
}