diff --git a/.circleci/config.yml b/.circleci/config.yml index ed0df807..f2f8fdbc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,7 @@ parameters: default: '' type: string repo_tag: - description: 'The tag of the module repo to checkout, '''' defaults to branch/PR' + description: "The tag of the module repo to checkout, '' defaults to branch/PR" default: '' type: string workflows: @@ -55,6 +55,18 @@ workflows: node_version: lts - os: windows node_version: maintenance + - release-management/test-nut: + matrix: + parameters: + os: + - linux + - windows + sfdx_version: + - latest + node_version: + - latest + requires: + - release-management/test-package - release-management/release-package: sign: true github-release: true diff --git a/messages/display.md b/messages/display.md index 833596ae..7faf3f6c 100644 --- a/messages/display.md +++ b/messages/display.md @@ -12,15 +12,15 @@ Output depends on the type of environment. For example, scratch org details incl - Display details about a scratch org with alias my-scratch-org: -<%= config.bin %> <%= command.id %> --target-env=my-scratch-org + <%= config.bin %> <%= command.id %> --target-env=my-scratch-org - Specify a username instead of an alias: -<%= config.bin %> <%= command.id %> --target-env=test-123456-abcdefg@example.com + <%= config.bin %> <%= command.id %> --target-env=test-123456-abcdefg@example.com - Specify JSON format and redirect output into a file: -<%= config.bin %> <%= command.id %> --target-env=my-scratch-org --json > tmp/MyOrdDesc.json + <%= config.bin %> <%= command.id %> --target-env=my-scratch-org --json > tmp/MyOrdDesc.json # flags.target-env.summary diff --git a/src/commands/env/display.ts b/src/commands/env/display.ts index 7ce7263c..5ffe0a3e 100644 --- a/src/commands/env/display.ts +++ b/src/commands/env/display.ts @@ -35,7 +35,7 @@ export default class EnvDisplay extends Command { if (await AuthInfo.hasAuthentications()) { authorizations = await AuthInfo.listAllAuthorizations(); - const targetEnv = Reflect.get(flags, 'target-env') as string; + const targetEnv = flags['target-env']; if (!targetEnv) { // TODO this should be retrieved from sf config once we have those commands. If not found, still throw. diff --git a/test/commands/env/display.nut.ts b/test/commands/env/display.nut.ts index b77d6e6b..37169302 100644 --- a/test/commands/env/display.nut.ts +++ b/test/commands/env/display.nut.ts @@ -25,7 +25,7 @@ describe('env display NUTs', () => { }); it('should display dev hub', () => { - const command = `env display --environment ${usernameOrAlias}`; + const command = `env display --target-env ${usernameOrAlias}`; const output = execCmd(command, { ensureExitCode: 0 }).shellOutput.stdout; expect(output).to.contain(usernameOrAlias); });