Skip to content

Commit

Permalink
rename sandbox format to config-format
Browse files Browse the repository at this point in the history
  • Loading branch information
rtpascual committed Nov 14, 2023
1 parent 4d691a4 commit ece9635
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-apricots-love.md
@@ -0,0 +1,5 @@
---
'@aws-amplify/backend-cli': patch
---

Rename sandbox format to config-format
2 changes: 1 addition & 1 deletion packages/cli/src/commands/sandbox/sandbox_command.test.ts
Expand Up @@ -104,7 +104,7 @@ void describe('sandbox command', () => {
assert.match(output, /--name/);
assert.match(output, /--dir-to-watch/);
assert.match(output, /--exclude/);
assert.match(output, /--format/);
assert.match(output, /--config-format/);
assert.match(output, /--config-out-dir/);
assert.equal(mockHandleProfile.mock.callCount(), 0);
});
Expand Down
8 changes: 4 additions & 4 deletions packages/cli/src/commands/sandbox/sandbox_command.ts
Expand Up @@ -19,7 +19,7 @@ type SandboxCommandOptionsCamelCase = {
dirToWatch: string | undefined;
exclude: string[] | undefined;
name: string | undefined;
format: ClientConfigFormat | undefined;
configFormat: ClientConfigFormat | undefined;
configOutDir: string | undefined;
profile: string | undefined;
};
Expand Down Expand Up @@ -83,7 +83,7 @@ export class SandboxCommand
const clientConfigLifecycleHandler = new ClientConfigLifecycleHandler(
this.clientConfigGeneratorAdapter,
args['config-out-dir'],
args.format
args['config-format']
);
const eventHandlers = this.sandboxEventHandlerCreator?.({
sandboxName: this.sandboxName,
Expand All @@ -97,7 +97,7 @@ export class SandboxCommand
const watchExclusions = args.exclude ?? [];
const clientConfigWritePath = await getClientConfigPath(
args['config-out-dir'],
args.format
args['config-format']
);
watchExclusions.push(clientConfigWritePath);
await sandbox.start({
Expand Down Expand Up @@ -138,7 +138,7 @@ export class SandboxCommand
array: false,
global: false,
})
.option('format', {
.option('config-format', {
describe: 'Client config output format',
type: 'string',
array: false,
Expand Down

0 comments on commit ece9635

Please sign in to comment.