mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
docs: add possible value for bool parameters (#1486)
This commit is contained in:
parent
e77209922a
commit
6eb8dc8191
@ -69,6 +69,7 @@ func setDefaultStepParameters(stepData *config.StepData) {
|
||||
switch param.Type {
|
||||
case "bool":
|
||||
param.Default = "`false`"
|
||||
param.PossibleValues = append(param.PossibleValues, true, false)
|
||||
case "int":
|
||||
param.Default = "`0`"
|
||||
}
|
||||
@ -80,6 +81,7 @@ func setDefaultStepParameters(stepData *config.StepData) {
|
||||
param.Default = fmt.Sprintf("`%v`", param.Default)
|
||||
case "bool":
|
||||
param.Default = fmt.Sprintf("`%v`", param.Default)
|
||||
param.PossibleValues = append(param.PossibleValues, true, false)
|
||||
case "int":
|
||||
param.Default = fmt.Sprintf("`%v`", param.Default)
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ var expectedResultDocument string = "# testStep\n\n\t## Description\n\nLong Test
|
||||
"| `param1` | No | | |\n" +
|
||||
"| `param2` | Yes | | |\n" +
|
||||
"| `script` | Yes | | |\n" +
|
||||
"| `verbose` | No | `false` | |\n\n" +
|
||||
"| `verbose` | No | `false` | `true`, `false` |\n\n" +
|
||||
" * `param0`: param0 description\n" +
|
||||
" * `param1`: param1 description\n" +
|
||||
" * `param2`: param1 description\n" +
|
||||
|
Loading…
Reference in New Issue
Block a user