apple iap: the dry run shows a live price that differs from the config (USA base and overrides) and --allow-price-changes replaces the price schedule; prices diff (the catalog diff report)
This commit is contained in:
parent
cbba936ed8
commit
4b0f9cd5b8
3 changed files with 75 additions and 21 deletions
|
|
@ -64,7 +64,9 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
const a = ctx.args;
|
||||
const sub = a._[0];
|
||||
if (sub === 'ppp') return (await import('./prices-ppp')).run(ctx);
|
||||
if (sub !== 'export' && sub !== 'import') throw new Error('usage: storebound prices export | import [--csv store/prices.csv] [--dry] | ppp [--base <USD>] [--dry]');
|
||||
// `prices diff`: the config's prices against both stores (the same read-only report as `catalog diff`)
|
||||
if (sub === 'diff') { ctx.args._.splice(0, 1, 'diff'); return (await import('./catalog')).run(ctx); }
|
||||
if (sub !== 'export' && sub !== 'import') throw new Error('usage: storebound prices export | import [--csv store/prices.csv] [--dry] | diff | ppp [--base <USD>] [--dry]');
|
||||
const store = a.get('store');
|
||||
if (store && store !== 'apple' && store !== 'play') throw new Error('--store apple | play');
|
||||
const useApple = (!store || store === 'apple') && !!config.apple;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue