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

Migrate plugin-config commands #4

Merged
merged 5 commits into from
Sep 8, 2022
Merged

Migrate plugin-config commands #4

merged 5 commits into from
Sep 8, 2022

Conversation

iowillhoit
Copy link
Contributor

What does this PR do?

Started with plugin-template-sf as a base
Migrated plugin-config v2 commands

What issues does this PR fix or reference?

@W-11572657@

@iowillhoit iowillhoit requested a review from a team as a code owner August 11, 2022 15:41
Copy link
Contributor

@mshanemc mshanemc left a comment

Choose a reason for hiding this comment

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

going to open a PR for some of this

.github/dependabot.yml Outdated Show resolved Hide resolved
src/commands/config/unset.ts Outdated Show resolved Hide resolved
src/commands/config/unset.ts Outdated Show resolved Hide resolved
"@salesforce/dev-config": "^3.1.0",
"@salesforce/dev-scripts": "^2",
"@salesforce/dev-scripts": "^2.0.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

there's a newer dev-scripts that updates the general (non-plugin) linter rules. Using that now saves some extra work later.

It'll bump some other deps and clean up unused deps, too.

Comment on lines +34 to +38
let value = '';
const configs = await this.parseConfigKeysAndValues();
for (const name of Object.keys(configs)) {
try {
value = configs[name];
Copy link
Contributor

Choose a reason for hiding this comment

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

avoids let, probably safe outside try/catch

Suggested change
let value = '';
const configs = await this.parseConfigKeysAndValues();
for (const name of Object.keys(configs)) {
try {
value = configs[name];
const configs = await this.parseConfigKeysAndValues();
for (const name of Object.keys(configs)) {
const value = configs[name] ?? '';
try {

@mshanemc
Copy link
Contributor

some feedback in a PR: #5

@mshanemc mshanemc merged commit 98c2bc4 into main Sep 8, 2022
@mshanemc mshanemc deleted the ew/move-config-commands branch September 8, 2022 18:27
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.

2 participants