Skip to content

Commit 724e8c9

Browse files
committed
Add Help field to PlatformRelease struct
1 parent 4bb455b commit 724e8c9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

arduino/cores/cores.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,18 @@ type Platform struct {
3535
Package *Package `json:"-"`
3636
}
3737

38+
// PlatformReleaseHelp represents the help URL for this Platform release
39+
type PlatformReleaseHelp struct {
40+
Online string `json:"-"`
41+
}
42+
3843
// PlatformRelease represents a release of a plaform package.
3944
type PlatformRelease struct {
4045
Resource *resources.DownloadResource
4146
Version *semver.Version
4247
BoardsManifest []*BoardManifest
4348
Dependencies ToolDependencies // The Dependency entries to load tools.
49+
Help PlatformReleaseHelp `json:"-"`
4450
Platform *Platform `json:"-"`
4551
Properties *properties.Map `json:"-"`
4652
Boards map[string]*Board `json:"-"`

arduino/cores/packageindex/index.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func (inPlatformRelease indexPlatformRelease) extractPlatformIn(outPackage *core
144144
URL: inPlatformRelease.URL,
145145
CachePath: "packages",
146146
}
147+
outPlatformRelease.Help = cores.PlatformReleaseHelp{Online: inPlatformRelease.Help.Online}
147148
outPlatformRelease.BoardsManifest = inPlatformRelease.extractBoardsManifest()
148149
if deps, err := inPlatformRelease.extractDeps(); err == nil {
149150
outPlatformRelease.Dependencies = deps

0 commit comments

Comments
 (0)