added cli command view containers and implementation also complete

This commit is contained in:
2021-06-09 23:59:46 +04:00
parent 8466e2d1ca
commit 14bceec3cc
4 changed files with 47 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ import (
// Variables declared for CLI
var (
AddServer string
ViewImages string
CreateVM string
Ports string
Mode string
@@ -46,6 +47,12 @@ var AppConfigFlags = []cli.Flag{
EnvVars: []string{"ADD_SERVER"},
Destination: &AddServer,
},
&cli.StringFlag{
Name: "ViewImages",
Usage: "View images available on the server IP address",
EnvVars: []string{"VIEW_IMAGES"},
Destination: &ViewImages,
},
&cli.StringFlag{
Name: "CreateVM",
Usage: "Creates Docker container on the selected server",
@@ -82,6 +89,7 @@ var AppConfigFlags = []cli.Flag{
EnvVars: []string{"SPECS"},
Destination: &Specs,
},
&cli.BoolFlag{
Name: "SetDefaultConfig",
Usage: "Sets a default configuration file",