PacletTools`
PacletTools`

PacletExtensions

PacletExtensions[paclet]

returns all extensions declared by paclet.

PacletExtensions[paclet, type]

returns all extensions declared by paclet that match type.

Details and Options

  • paclet must be a file path to a paclet directory in the local file system, or a PacletObject.
  • PacletExtensions can be used to check which paclet extensions are active for a particular system configuration.
  • PacletExtensions processes the PacletObject[..]["Extensions"] value.
  • PacletExtensions returns extensions in the form {name, <| options |>}, which differs from how they are typically declared in a PacletInfo.wl file.
  • PacletExtensions has the following options:
  • "SystemID"$SystemIDSystem ID compatibility used to filter extensions
    LanguageAllLanguage used to filter extensions
  • The "SystemID" and Language options are used to filter the extensions declared by the paclet before they are returned from PacletExtensions.
  • The "SystemID" option expects values that are valid $SystemID values.

Examples

open allclose all

Basic Examples  (3)

Begin by ensuring PacletTools` is loaded:

Get all extensions declared by a paclet:

Get all "Kernel" extensions declared by a paclet:

Scope  (1)

Filtering Extensions  (1)

Given a paclet object like:

Use PacletExtensions to filter for extensions that are active on x86-64 Macintosh computers:

Options  (5)

"SystemID"  (4)

The "SystemID" option to PacletExtensions is used to filter extensions based on the "SystemID" option, which can be set on individual paclet extensions.

Given a paclet object like:

Use the "SystemID" option to filter for extensions that are active on x86-64 Macintosh computers:

If no extensions satisfy the filter, an empty list is returned:

If an extension does not have a "SystemID" option, it is active on all systems, and will be included in the output of PacletExtensions (unless filtered via a different option):

The "SystemID" extension option can be used on all paclet extension types:

Language  (1)

The Language option to PacletExtensions is used to filter extensions based on the Language option, which can be set on individual paclet extensions.

Wolfram Research (2021), PacletExtensions, Wolfram Language function, https://reference.wolfram.com/language/PacletTools/ref/PacletExtensions.html.

Text

Wolfram Research (2021), PacletExtensions, Wolfram Language function, https://reference.wolfram.com/language/PacletTools/ref/PacletExtensions.html.

CMS

Wolfram Language. 2021. "PacletExtensions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PacletTools/ref/PacletExtensions.html.

APA

Wolfram Language. (2021). PacletExtensions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PacletTools/ref/PacletExtensions.html

BibTeX

@misc{reference.wolfram_2022_pacletextensions, author="Wolfram Research", title="{PacletExtensions}", year="2021", howpublished="\url{https://reference.wolfram.com/language/PacletTools/ref/PacletExtensions.html}", note=[Accessed: 20-August-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_pacletextensions, organization={Wolfram Research}, title={PacletExtensions}, year={2021}, url={https://reference.wolfram.com/language/PacletTools/ref/PacletExtensions.html}, note=[Accessed: 20-August-2022 ]}