File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,7 @@ incorrectNameFormat = "Name argument cannot contain a slash"
299
299
invalidSecondArgType = " Invalid argument type for second parameter"
300
300
301
301
[functions .secret ]
302
+ description = " Retrieves a secret from a vault"
302
303
notString = " Parameter secret name is not a string"
303
304
multipleSecrets = " Multiple secrets with the same name '%{name}' and different values was returned, try specifying a vault"
304
305
extensionReturnedError = " Extension '%{extension}': %{error}"
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ impl Function for Secret {
18
18
vec ! [ AcceptedArgKind :: String ]
19
19
}
20
20
21
+ fn description ( & self ) -> String {
22
+ t ! ( "functions.secret.description" ) . to_string ( )
23
+ }
24
+
25
+ fn category ( & self ) -> super :: FunctionCategory {
26
+ super :: FunctionCategory :: System
27
+ }
28
+
21
29
fn min_args ( & self ) -> usize {
22
30
1
23
31
}
You can’t perform that action at this time.
0 commit comments