Skip to content

__nexus_toolbox_versions__

miscellaneous · scripts/miscellaneous/__nexus_toolbox_versions__.m

NEXUS_TOOLBOX_VERSIONS  Installed optional toolboxes and their versions.

  T = NEXUS_TOOLBOX_VERSIONS () returns a struct array, one element per
  installed toolbox, with the fields name (folder name), title, version
  (VERSION= of its toolbox.conf, '' when it has none) and path.

  NEXUS_TOOLBOX_VERSIONS () prints the "Toolboxes:" section of the
  version banner.  S = NEXUS_TOOLBOX_VERSIONS ('text') returns that
  section as text (empty when no toolbox is installed) so that a caller
  can print it itself.

  Toolboxes are found where Nexus finds them at start-up, in this order:
  $NEXUS_TOOLBOX_PATH, <user data dir>/nexus/toolboxes (~/.local/share/
  nexus/toolboxes), <datadir>/nexus/toolboxes; the first root offering a
  name wins; NEXUS_NO_TOOLBOXES=1 lists none.

  Only builtin functions are used: the --version banner calls this under
  --no-init-path, where the M-file library is not on the path.