@pagopa/dx-cli
Version:
A CLI useful to manage DX tools.
22 lines (21 loc) • 657 B
JavaScript
// These are the only regions we currently support for DX
// Order matters! they go from the preferred to the less preferred ones
export const locations = ["italynorth", "westeurope"];
export function isAzureLocation(location) {
return locations.includes(location);
}
// The default location is the first one
export const defaultLocation = locations[0];
export const locationShort = {
italynorth: "itn",
westeurope: "weu",
};
const displayName = {
italynorth: "Italy North",
westeurope: "West Europe",
};
export const cloudRegions = locations.map((l) => ({
displayName: displayName[l],
name: l,
short: locationShort[l],
}));