Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CLI): support multiple env options #9131

Merged
merged 1 commit into from Mar 16, 2021

Conversation

lewgordon
Copy link
Contributor

Sorry about the lack of a Github bug. I can make one if need be. This is my reference, though: https://forum.serverless.com/t/unexpected-multiple-env/14401

@lewgordon lewgordon marked this pull request as ready for review March 16, 2021 18:02
@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #9131 (d764dae) into master (e747a1f) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9131      +/-   ##
==========================================
+ Coverage   87.12%   87.14%   +0.01%     
==========================================
  Files         294      294              
  Lines       11253    11253              
==========================================
+ Hits         9804     9806       +2     
+ Misses       1449     1447       -2     
Impacted Files Coverage Δ
lib/cli/commands-schema.js 100.00% <ø> (ø)
lib/cli/resolve-input.js 95.00% <100.00%> (+5.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e747a1f...0fd1f81. Read the comment docs.

@@ -16,7 +16,7 @@ const baseArgsSchema = {
};

const resolveArgsSchema = (commandOptionsSchema) => {
const options = { boolean: new Set(), string: new Set(), alias: new Map() };
const options = { boolean: new Set(), string: new Set(), alias: new Map(), multiple: new Set() };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -38,7 +38,7 @@ describe('test/unit/lib/cli/resolve-input.test.js', () => {
});

it('should recognize --help as boolean', async () => {
expect(data.options.version).to.equal(true);
expect(data.options.help).to.equal(true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

Copy link
Contributor

@medikoo medikoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lewgordon great find! Thank you

@medikoo medikoo merged commit a941e87 into serverless:master Mar 16, 2021
@lewgordon lewgordon deleted the fix-multiple-env branch March 16, 2021 18:29
beccslee pushed a commit to beccslee/serverless that referenced this pull request Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants