-
Notifications
You must be signed in to change notification settings - Fork 18
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: add convert command #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small change requested
|
||
if (this.flags.rootdir) { | ||
path = [this.project.getPackagePath(this.flags.rootdir)]; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right. The rootdir
can be (and typically is) outside of the project's packageDirectories. If they want to choose a file or directory within the project's packageDirs then they should use the sourcepath
param.
We'll need to validate rootdir
and use it in conjunction with any other params to match the toolbelt version.
src/commands/force/source/convert.ts
Outdated
} | ||
|
||
const cs = await this.createComponentSet({ | ||
sourcepath: asArray<string>(path || this.flags.sourcepath), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we want to concat the paths. Test with toolbelt to see what it does. I'm not 100% on this usecase.
What does this PR do?
adds the
source:convert
commandWhat issues does this PR fix or reference?
@W-9091465@