Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

refactor: cleanup flags #93

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

MunifTanjim
Copy link
Contributor

@MunifTanjim MunifTanjim commented May 25, 2020

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @MunifTanjim to sign the Salesforce.com Contributor License Agreement.

@codecov
Copy link

codecov bot commented May 25, 2020

Codecov Report

Merging #93 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #93   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files           1       1           
  Lines          10      10           
  Branches        2       2           
======================================
  Misses         10      10           

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 492cadb...7b8b7c5. Read the comment docs.

@RasPhilCo
Copy link
Contributor

Thanks for the PR! Good catch on removing optionType, however autocomplete needs the types deleted and those flag builders are exported (requiring a deprecation notice or major bump). Let's start with removing optionType in its own PR and go from there on larger refactor.

@MunifTanjim
Copy link
Contributor Author

MunifTanjim commented May 27, 2020

👍 @RasPhilCo Done!

Let's start with removing optionType in its own PR and go from there on larger refactor.

Can we move these codes (along with the completion types) from command/src/flags.ts to parser/src/flags.ts next? And then we can just import them from parser package and re-export them from the command package.

Edit: I see that IConfig is not available in parser package. So, that probably won't happen.

src/flags.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@RasPhilCo RasPhilCo left a comment

Choose a reason for hiding this comment

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

🏄

@RasPhilCo RasPhilCo merged commit 1979520 into oclif:master Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants