-
Notifications
You must be signed in to change notification settings - Fork 8
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: allow some cmds to run outside a project #733
Conversation
@@ -88,7 +87,7 @@ export class PackageListCommand extends SfCommand<PackageListCommandResult> { | |||
NamespacePrefix, | |||
ContainerOptions, | |||
ConvertedFromPackageId, | |||
Alias: this.project!.getAliasesFromPackageId(Id).join(), |
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.
so this alias info could be different depending on wether this runs inside an sfdx project or not.
@@ -25,7 +25,6 @@ export class Package1VersionCreateCommand extends SfCommand<PackageUploadRequest | |||
public static readonly summary = messages.getMessage('summary'); | |||
public static readonly description = messages.getMessage('description'); | |||
public static readonly examples = messages.getMessages('examples'); | |||
public static readonly requiresProject = true; |
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.
didn't see any usage of this.project
in the command, probably a leftover from toolbelt migration
packag1 NUT failures are unrelated to these changes, you can see the same errors here: |
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.
ok as is, saw a few things I'd like to be different so #738
* refactor: pr comments as code * test: nut update for column order change, apiversion as number
QA: package list package installed list package1:version:create I don't know which 033 I should be using. |
What does this PR do?
Allow the following commands to be run outside an sfdx project:
package installed list
package list
package1 version create
the following ones still require an sfdx project:
mostly because the packaging lib expects an
SfProject
instance to be able to resolve--package
being an alias defined in sfdx-project.json.internal doc: https://salesforce.quip.com/gnuNAtZkcOCP
we haven't decided on this work yet ⬆️
What issues does this PR fix or reference?
forcedotcom/cli#2932
@W-16189175@