How to use the ern-cauldron-api.cauldronRepositories.current 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 / current.ts View on Github external
export const commandHandler = async () => {
  const current = cauldronRepositories.current
  if (!current) {
    throw new Error(`No Cauldron repository is in use yet`)
  }
  log.info(`${current.alias} [${current.url}]`)
}