1
0
mirror of https://github.com/docker/cli.git synced 2025-08-29 00:47:54 +03:00

cli-plugins: add concept of experimental plugin, only enabled in experimental mode

To test, add $(pwd)/build/plugins-linux-amd64 to "cliPluginsExtraDirs" config and run:
make plugins
make binary
HELLO_EXPERIMENTAL=1 docker helloworld

To show it enabled:
HELLO_EXPERIMENTAL=1 DOCKER_CLI_EXPERIMENTAL=enabled docker helloworld

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass
2019-05-21 16:50:12 +00:00
parent 57aa7731d0
commit 6ca8783730
5 changed files with 46 additions and 10 deletions

View File

@@ -101,5 +101,6 @@ func main() {
SchemaVersion: "0.1.0",
Vendor: "Docker Inc.",
Version: "testing",
Experimental: os.Getenv("HELLO_EXPERIMENTAL") != "",
})
}