Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const commandHandler = async ({
alias,
current,
url,
}: {
alias: string
current: boolean
url: string
}) => {
if (current === undefined) {
current = await askUserConfirmation(
`Set ${alias} as current Cauldron repository ?`
)
}
cauldronRepositories.add(alias, url, { activate: current })
log.info(`Added Cauldron repository ${url} with alias ${alias}`)
}