GHToolbox

버전 1.0.20 (14.8 KB) 작성자: DataJoint Bot
'ghtb' provides a simple way to manage addon installation of open-source MATLAB Community Toolboxes linked to GitHub (via Releases).
다운로드 수: 109
업데이트 날짜: 2020/11/5

INSTALL(target, varargin)
Description:
Provides a way to directly 'install' MATLAB Community Toolboxes from
Github. For upgrade and downgrade use-cases, users can set the `override` option to
force the install.
Inputs:
target[required]: (string) Toolbox repo (e.g. 'org1/repo1') or local path to *.mltbx
version[optional, default='latest']: (string||handle) Version to be installed e.g.
'1.0.0' or version handle of the form @(v) that
resolves to acceptable versions. Handle approach
should expect v to be a cell array of version
candidates and return a logical array of result.
override[optional, default=false]: (boolean) Flag to indicate if should override an
existing install
Assumptions:
- Community Toolbox linked on FileExchange to GitHub via GitHub Releases.
- Community Toolbox publicly available as open-source on GitHub.
- Community Toolbox attaches a single '.mltbx' artifact to GitHub Releases.
- Community Toolbox name matches the filename of '.mltbx' artifact.
- Users do not wish to have multiple simultaneous versions installed i.e. only a
single version per Toolbox is installed at any given time.
Examples:
ghtb.install('guzman-raphael/compareVersions')
ghtb.install('guzman-raphael/compareVersions', 'version', '1.0.7')
ghtb.install('guzman-raphael/compareVersions', 'version', '1.0.6', 'override', true)
ghtb.install('guzman-raphael/compareVersions', 'version', ...
@(v) cellfun(@(x) contains(x, '1.0.'), v, 'uni', true))
ghtb.install('compareVersions.mltbx') %install from local toolbox file

UNINSTALL(varargin)
Description:
Provides a way to directly 'uninstall' MATLAB Community Toolboxes from
Github.
Inputs:
toolboxName[required]: (string) Toolbox name to be uninstalled e.g. 'toolbox1'
Assumptions:
- Users do not wish to have multiple simultaneous versions installed i.e. all
versions of specified toolbox are uninstalled (if applicable).
Examples:
ghtb.uninstall('compareVersions') % uninstalls all versions of Toolbox

REQUIRE(requiredToolboxes, varargin)
Description:
Provides a way to directly require specific toolboxes with the option to 'install' if
not satisfied. Unsatisfied toolboxes with trigger a
'GHToolbox:requireToolboxes:Failed' error.
Inputs:
requiredToolboxes[required]: (cell) Toolboxes to be required and (if applicable)
resolved with installation. Each cell should contain a
struct with fields: Name[required, string],
ResolveTarget[required, string],
Version[optional, string||handle]. For Version
specification, see below for examples or
see help(ghtb.install) for accepted Version assignment.
prompt[optional, default=true]: (boolean) Whether to silently install or use prompts.
resolveGHToolboxDeps[optional, default=true]: (boolean) Resolve dependencies related
to GHToolbox.
Examples:
requiredToolboxes = {...
struct(...
'Name', 'GHToolbox', ...
'ResolveTarget', 'datajoint/GHToolbox'...
), ...
struct(...
'Name', 'compareVersions', ...
'ResolveTarget', 'guzman-raphael/compareVersions', ...
'Version', '1.0.8'...
), ...
struct(...
'Name', 'mym', ...
'ResolveTarget', 'datajoint/mym', ...
'Version', @(v) cellfun(@(x) contains(x, '2.7.'), v, 'uni', true)...
)...
};
ghtb.require(requiredToolboxes) % require with prompts
ghtb.require(requiredToolboxes, 'prompt', false)

PACKAGE(toolboxName, toolboxAuthor, toolboxContact, toolboxSummary, ...
toolboxDescription, toolboxExclusions, toolboxVersionHandle, ...
toolboxRootFiles, varargin)
Description:
Provides a programatic way to 'package' MATLAB Community Toolboxes.
Inputs:
toolboxName[required]: (string) Toolbox name, will create as '{{toolboxName}}.mltbx'.
toolboxAuthor[required]: (string) Toolbox author full name.
toolboxContact[required]: (string) Toolbox author email.
toolboxSummary[required]: (string) Toolbox summary. Limit to 140 characters.
toolboxDescription[required]: (string) Toolbox long description.
toolboxExclusions[required]: (cell) Filepaths to exclude. Based from
'toolboxRootDir'.
toolboxVersionHandle[required]: (handle) Function that

인용 양식

DataJoint Bot (2024). GHToolbox (https://github.com/datajoint/GHToolbox/releases/tag/v1.0.20), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그 태그 추가

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.20

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/v1.0.20

1.0.19

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.19

1.0.18

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.18

1.0.16

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.16

1.0.15

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.15

1.0.14

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.14

1.0.13

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.13

1.0.12

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.12

1.0.11.0

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.11

1.0.9

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.9

1.0.8

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.8

1.0.7

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.7

1.0.6

See release notes for this release on GitHub: https://github.com/guzman-raphael/GHToolbox/releases/tag/1.0.6

1.0.5.0

See release notes for this release on GitHub: https://github.com/datajoint/GHToolbox/releases/tag/1.0.5

1.0.4

See release notes for this release on GitHub: https://github.com/guzman-raphael/GHToolbox/releases/tag/1.0.4

1.0.3

See release notes for this release on GitHub: https://github.com/guzman-raphael/GHToolbox/releases/tag/1.0.3

1.0.2

See release notes for this release on GitHub: https://github.com/guzman-raphael/GHToolbox/releases/tag/1.0.2

1.0.1

See release notes for this release on GitHub: https://github.com/guzman-raphael/GHToolbox/releases/tag/1.0.1

1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.