cli/command: deprecate WithContentTrustFromEnv, WithContentTrust
These options were used internally as defaults for the constructor and only impact commands implemented in the CLI itself. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -10,7 +10,7 @@ import (
|
||||
func contentTrustEnabled(t *testing.T) bool {
|
||||
t.Helper()
|
||||
var cli DockerCli
|
||||
assert.NilError(t, WithContentTrustFromEnv()(&cli))
|
||||
assert.NilError(t, withContentTrustFromEnv()(&cli))
|
||||
return cli.contentTrust
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user