diff --git a/flagext/secret.go b/flagext/secret.go index 8d32649eb..d6c1a4432 100644 --- a/flagext/secret.go +++ b/flagext/secret.go @@ -1,5 +1,10 @@ package flagext +// SecretWithValue returns Secret with specified value. +func SecretWithValue(v string) Secret { + return Secret{value: v} +} + type Secret struct { value string }