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

refactor: add types to cli command options #1205

Merged
merged 1 commit into from Apr 7, 2021
Merged

refactor: add types to cli command options #1205

merged 1 commit into from Apr 7, 2021

Conversation

enapupe
Copy link
Contributor

@enapupe enapupe commented Apr 5, 2021

Description

Add types to CLI command options arguments

Motivation and Context

Serverless has introduced a mandatory type definition for CLI arguments
https://www.serverless.com/framework/docs/deprecations/#CLI_OPTIONS_SCHEMA

How Has This Been Tested?

I did not test it, just used common sense to define the types, it definitely needs review from someone else.

The framework also allows for a default argument value, which I'm not really sure it's useful at this time.

Copy link
Collaborator

@frozenbonito frozenbonito left a comment

Choose a reason for hiding this comment

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

LGTM!
Thank you @enapupe

@frozenbonito frozenbonito merged commit b55c846 into dherault:master Apr 7, 2021
@enapupe enapupe deleted the command-options-types branch April 7, 2021 16:26
@nponeccop
Copy link

Closes #1211 BTW

@ffxsam
Copy link

ffxsam commented Apr 21, 2021

When will this be published to the npm registry?

@pgrzesik
Copy link
Collaborator

There was a minor regression introduced to tests as a part of: #1175 - after that gets fixed, I would like to release a new verison

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

Successfully merging this pull request may close these issues.

None yet

5 participants