-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
enhancementNew feature or requestNew feature or requestextensionsPhylum CLI extensionsPhylum CLI extensionsmedium priorityShould be handled as soon as possibleShould be handled as soon as possible
Milestone
Description
Currently, phylum extension add will install extensions from a local directory.
In the future, we may have a marketplace of extensions and it would make more sense that phylum extension add <extension-name> adds an extension from there.
To ensure that we can distinguish between local and marketplace installations in the future, the phylum extension add should enforce a specific format for local installs.
After discussion, we have decided that a local install will be required to use a slash in the phylum extension add command. For example:
phylum extension add foo # Install `foo` from marketplace
phylum extension add ./foo # Install from local directory `foo`
phylum extension add foo/bar # Install from local directory `foo/bar`
phylum extension add /path/to/foo # Install from local directory `/path/to/foo`
phylum extension add C:\dev\foo # Install from local directory `C:\dev\foo`
Error message
Since we do not currently support marketplace installs, any phylum extension add command that attempt to install from the marketplace will fail with a descriptive error message:
❗ Error: Attempting to install from marketplace, which is not yet supported. Did you mean `phylum extension add ./foo`
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestextensionsPhylum CLI extensionsPhylum CLI extensionsmedium priorityShould be handled as soon as possibleShould be handled as soon as possible