Skip to content

Commit

Permalink
fix: show ampx command instead of amplify command in messages to …
Browse files Browse the repository at this point in the history
…user (#1500)

* fix: show `ampx` command instead of `amplify` command in messages to users

* fix: use `format.normalizedAmpxCommand` instead of `format.command`
  • Loading branch information
fossamagna committed May 14, 2024
1 parent 147fc86 commit 508247a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-icons-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aws-amplify/backend-cli': patch
---

show `ampx` command instead of `amplify` command in messages to users
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ void describe('sandbox secret list command', () => {
});

assert.equal(printMock.mock.callCount(), 1);
assert.ok(
printMock.mock.calls[0].arguments[0].startsWith(
'No sandbox secrets found.'
)
assert.equal(
printMock.mock.calls[0].arguments[0],
`No sandbox secrets found. To create a secret use ${format.normalizeAmpxCommand(
'sandbox secret set <secret-name>'
)}.`
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export class SandboxSecretListCommand
printer.print(format.list(secrets.map((secret) => secret.name)));
} else {
printer.print(
`No sandbox secrets found. To create a secret use ${format.command(
'amplify sandbox secret set <secret-name>'
`No sandbox secrets found. To create a secret use ${format.normalizeAmpxCommand(
'sandbox secret set <secret-name>'
)}.`
);
}
Expand Down

0 comments on commit 508247a

Please sign in to comment.