Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit a035273

Browse files
committed
v0.5.0
1 parent 5cf6d91 commit a035273

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

main.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type measurementOutput struct {
2929
const (
3030
GB = 1024 * 1024 * 1024 // in bytes
3131
MB = 1024 * 1024
32+
Version = "0.5.0"
3233
)
3334

3435
var knownKeyProviders = map[string]string{
@@ -105,7 +106,7 @@ func main() {
105106
kernelCmdline string
106107
jsonOutput bool
107108
metadataPath string
108-
mrKeyProvider string = defaultMrKeyProvider
109+
showVersion bool
109110
)
110111

111112
flag.StringVar(&fwPath, "fw", "", "Path to firmware file")
@@ -116,12 +117,13 @@ func main() {
116117
flag.StringVar(&kernelCmdline, "cmdline", "", "Kernel command line")
117118
flag.BoolVar(&jsonOutput, "json", false, "Output in JSON format")
118119
flag.StringVar(&metadataPath, "metadata", "", "Path to DStack metadata.json file")
119-
flag.StringVar(&mrKeyProvider, "mrkp", defaultMrKeyProvider, "Measurement of key provider")
120+
flag.BoolVar(&showVersion, "version", false, "Show version information")
120121
flag.Parse()
121122

122-
// If the mrKeyProvider is in the knownKeyProviders, replace it with the value
123-
if knownKeyProvider, ok := knownKeyProviders[mrKeyProvider]; ok {
124-
mrKeyProvider = knownKeyProvider
123+
// Show version and exit if requested
124+
if showVersion {
125+
fmt.Printf("dstack-mr version %s\n", Version)
126+
os.Exit(0)
125127
}
126128

127129
// If metadata file is provided, read it and override other options

0 commit comments

Comments
 (0)