MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / ConvertToJson

Method ConvertToJson

cli/cmd/version.go:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (smartVersion *SmartVersion) ConvertToJson() string {
58
59 systemInfo := getOsInformation()
60
61 json := fmt.Sprintf(i18nInstance.Version.Info_template,
62 smartVersion.VersionNumber, systemInfo, smartVersion.BuildNumber,
63 common.LocalTimeStr(smartVersion.BuildTime), smartVersion.TargetCommitish, smartVersion.Company)
64 return json
65}
66
67func init() {
68

Callers 1

version.goFile · 0.80

Calls 1

getOsInformationFunction · 0.85

Tested by

no test coverage detected