Skip to content

Commit 3c39e2b

Browse files
committed
Changed prompts in configure from 0/1 to no/yes
1 parent 72663dc commit 3c39e2b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.5.1] - Unreleased
9+
10+
### Fixed
11+
- Changed prompts in configure from 0/1 to no/yes (#461)
12+
813
## [2.5.0] - 2024-09-24
914

1015
### Added

cls/SourceControl/Git/Settings.cls

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,12 @@ ClassMethod Configure() As %Boolean [ CodeMode = objectgenerator ]
152152
set prompt = $$$comMemberKeyGet(%class.Name,$$$cCLASSproperty,property,$$$cPROPdescription)
153153
set promptQuoted = $$$QUOTE(prompt_":")
154154
set promptQuoted = $replace(promptQuoted,"${username}","'""_$Username_""'")
155-
do %code.WriteLine(" set response = ##class(%Library.Prompt).GetString("_promptQuoted_",.value,,,,"_defaultPromptFlag_")")
155+
set propertyDef = ##class(%Dictionary.PropertyDefinition).%OpenId("SourceControl.Git.Settings||"_property_"")
156+
if (propertyDef) && ((propertyDef.Type = "%Boolean") || (propertyDef.Name = "basicMode")) {
157+
do %code.WriteLine(" set response = ##class(%Library.Prompt).GetYesNo("_promptQuoted_",.value,,"_defaultPromptFlag_")")
158+
} else {
159+
do %code.WriteLine(" set response = ##class(%Library.Prompt).GetString("_promptQuoted_",.value,,,,"_defaultPromptFlag_")")
160+
}
156161
do %code.WriteLine(" if response '= $$$SuccessResponse { quit 0 }")
157162
do %code.WriteLine(" set inst."_property_" = value")
158163

0 commit comments

Comments
 (0)