added tracker to cli abd into add and remove container on the client side

This commit is contained in:
2021-07-18 12:12:31 +04:00
parent 51110c235b
commit 489ffd6d0c
4 changed files with 46 additions and 0 deletions

View File

@@ -135,6 +135,16 @@ var CliAction = func(ctx *cli.Context) error {
client.PrettyPrint(plugins)
}
// If the flag Tracked Container is called or the flag
// --tc
if TrackedContainers {
err, trackedContainers := client.ViewTrackedContainers()
if err != nil {
fmt.Print(err)
}
client.PrettyPrint(trackedContainers)
}
return nil
}