From 0c1f2adc0b1609df7549410249b23de40c2f6393 Mon Sep 17 00:00:00 2001 From: kucherenkovova Date: Fri, 26 Oct 2018 12:01:42 +0300 Subject: [PATCH] added docs for --test flag for glide get --- docs/commands.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/commands.md b/docs/commands.md index 7c3a53cc..4b6717c1 100644 --- a/docs/commands.md +++ b/docs/commands.md @@ -54,6 +54,10 @@ The `glide get` command can have a [version or range](versions.md) passed in wit The version is separated from the package name by an anchor (`#`). If no version or range is specified and the dependency uses Semantic Versions Glide will prompt you to ask if you want to use them. +If you have test dependency that should be omitted in production you can use `--test` flag. This will place your dependency in `testImport` section in `glide.lock` file. E.g. + + $ glide get --test github.com/bouk/monkey + ## glide update (aliased to up) Download or update all of the libraries listed in the `glide.yaml` file and put