You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/fakemachine/main.go
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,12 @@ import (
8
8
"github.com/go-debos/fakemachine"
9
9
"github.com/jessevdk/go-flags"
10
10
"os"
11
+
"runtime/debug"
11
12
"strings"
12
13
)
13
14
15
+
varVersionstring
16
+
14
17
typeOptionsstruct {
15
18
Backendstring`short:"b" long:"backend" description:"Virtualisation backend to use" default:"auto"`
16
19
Volumes []string`short:"v" long:"volume" description:"volume to mount"`
@@ -22,11 +25,47 @@ type Options struct {
22
25
ScratchSizestring`short:"s" long:"scratchsize" description:"On-disk scratch space size (with a unit suffix, e.g. 4G); if unset, memory backed scratch space is used"`
23
26
ShowBootbool`long:"show-boot" description:"Show boot/console messages from the fakemachine"`
24
27
Quietbool`short:"q" long:"quiet" description:"Don't show logs from fakemachine or the backend; only print the command's stdout/stderr"`
0 commit comments