Added create docker image route and intergrated with the client
This commit is contained in:
10
cmd/flags.go
10
cmd/flags.go
@@ -5,13 +5,13 @@ import (
|
||||
)
|
||||
|
||||
var Mode,IpAddress string
|
||||
var List_servers, Ip_table bool
|
||||
var List_servers, Ip_table, Abspath bool
|
||||
|
||||
var AppConfigFlags = []cli.Flag{
|
||||
// Deprecated to be implemented using GRPC
|
||||
&cli.StringFlag{
|
||||
Name: "Mode",
|
||||
Value: "server",
|
||||
Value: "client",
|
||||
Usage: "Specifies mode of running",
|
||||
EnvVars: []string{"P2P_MODE"},
|
||||
Destination: &Mode,
|
||||
@@ -28,4 +28,10 @@ var AppConfigFlags = []cli.Flag{
|
||||
EnvVars: []string{"CREATE_VM"},
|
||||
Destination: &IpAddress,
|
||||
},
|
||||
&cli.BoolFlag{
|
||||
Name: "FilePath",
|
||||
Usage: "Testing for absolute path",
|
||||
EnvVars: []string{"CREATE_VM"},
|
||||
Destination: &Abspath,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user