Skip to content

Add options to base command to fix v3 functionality #7

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

Merged
merged 1 commit into from
Apr 24, 2022
Merged

Conversation

mdial89f
Copy link
Contributor

@mdial89f mdial89f commented Apr 24, 2022

Purpose

This changeset restores 'sls online' functionality when using serverless v3.

Linked Issues to Close

Closes #6

Approach

As outlined in #6, serverless' deprecation of free form options caused this bug to surface. This plugin had been relying on the free form "fucntion" option when calling "sls online --function myfunc --stage mystage" (note the lack of subcommand 'start').
With the deprecation in v3, the base command began failing.
This changeset makes it so the base command 'sls online' and start subcommand 'sls online start' both define and expect a function parameter.

Learning

Learning about the deprecation was crucial... https://www.serverless.com/framework/docs/deprecations#handling-of-unrecognized-cli-options
Until I realized that, this was really confusing.

Assorted Notes/Considerations

N/A

Pull Request Creator Checklist

  • Any associated issue(s) are linked above.
  • This PR and linked issues(s) are a complete description of the changeset.
  • Someone has been assigned this PR.
  • Someone has been marked as reviewer on this PR.

Pull Request Assignee Checklist

  • Any associated issue(s) are linked above.
  • This PR meets all acceptance criteria for any linked issues.
  • This PR and linked issues(s) are a complete description of the changeset.

@mdial89f mdial89f self-assigned this Apr 24, 2022
@mdial89f mdial89f merged commit 131a38a into main Apr 24, 2022
@mdial89f mdial89f deleted the fix branch April 24, 2022 18:37
github-actions bot pushed a commit that referenced this pull request Apr 24, 2022
## [2.2.3](v2.2.2...v2.2.3) (2022-04-24)

### Bug Fixes

* **v3 options:**  Add options to base command to fix as of v3 ([#7](#7)) ([131a38a](131a38a))
@github-actions
Copy link

🎉 This PR is included in version 2.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Base functionality broken with v3 due to free form cli options
1 participant