@fluid-app/fluid-cli-localization 0.1.409 → 0.1.410
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4286,7 +4286,7 @@ function registerMarketsCommands(parent, ctx) {
|
|
|
4286
4286
|
if (!trimmed) throw new LocalizationError("A market name can't be blank.");
|
|
4287
4287
|
ctx.output(await renameMarket(await client$1(ctx), marketId, trimmed));
|
|
4288
4288
|
}));
|
|
4289
|
-
parent.command("create <name...>").description("Create a market holding the given countries. Whether prices are carried follows the server default (carried only if you have products.update); --no-carry-prices forces no carry").requiredOption("--countries <isos>", "Comma-separated ISO codes, e.g. GB,FR").option("--no-carry-prices", "Force no price carry into the new market (default: server decides
|
|
4289
|
+
parent.command("create <name...>").description("Create a market holding the given countries. Whether prices are carried follows the server default (carried by default only if you have products.update, or the products scope for a Droplet; otherwise nothing is carried); --no-carry-prices forces no carry").requiredOption("--countries <isos>", "Comma-separated ISO codes, e.g. GB,FR").option("--no-carry-prices", "Force no price carry into the new market (default: server decides; carried only with products.update, or the products scope for a Droplet)").action((words, opts) => run(async () => {
|
|
4290
4290
|
const name = words.join(" ").trim();
|
|
4291
4291
|
if (!name) throw new LocalizationError("A market name can't be blank.");
|
|
4292
4292
|
const isos = [...new Set(opts.countries.split(",").map((c) => countryCodeOf(c)))];
|
|
@@ -4298,7 +4298,7 @@ function registerMarketsCommands(parent, ctx) {
|
|
|
4298
4298
|
note: opts.carryPrices ? "carry_prices was not sent; the server default applies." : "carry_prices: false was sent; no prices were copied to the new market."
|
|
4299
4299
|
});
|
|
4300
4300
|
}));
|
|
4301
|
-
parent.command("move <iso>").description("Move a country into another market. Whether prices are carried follows the server default (carried only if you have products.update); --no-carry-prices forces no carry").requiredOption("--to <market>", "Target market id or name").option("--preview", "Show what the move would change; write nothing", false).option("--no-carry-prices", "Force no price carry into the target market (default: server decides
|
|
4301
|
+
parent.command("move <iso>").description("Move a country into another market. Whether prices are carried follows the server default (carried by default only if you have products.update, or the products scope for a Droplet; otherwise nothing is carried); --no-carry-prices forces no carry").requiredOption("--to <market>", "Target market id or name").option("--preview", "Show what the move would change; write nothing", false).option("--no-carry-prices", "Force no price carry into the target market (default: server decides; carried only with products.update, or the products scope for a Droplet)").option("--yes", "Confirm without a prompt", false).action((iso, opts) => run(async () => {
|
|
4302
4302
|
const code = countryCodeOf(iso);
|
|
4303
4303
|
const api = await client$1(ctx);
|
|
4304
4304
|
const id = await resolveMarketId(api, opts.to);
|