Skip to content

Commit

Permalink
Add #withIndexDo: to groups
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 27, 2024
1 parent 37f384a commit 04014a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,6 @@ GtSubprocessWithInMemoryOutput >> commandLineString [
separatedBy: [ stream nextPut: Character space ] ]
]

{ #category : #accessing }
GtSubprocessWithInMemoryOutput >> environmentAt: key put: value [

self envVariables at: key put: value.
]

{ #category : #'env building' }
GtSubprocessWithInMemoryOutput >> envVariables [
"Answer the dictionary of environment variables that will be passed to the sub-process.
Expand All @@ -167,6 +161,12 @@ GtSubprocessWithInMemoryOutput >> envVariables [
^ envVariables ifNil: [ envVariables := Dictionary new ]
]

{ #category : #accessing }
GtSubprocessWithInMemoryOutput >> environmentAt: key put: value [

self envVariables at: key put: value.
]

{ #category : #accessing }
GtSubprocessWithInMemoryOutput >> errorBlock [
^ errorBlock
Expand Down
5 changes: 5 additions & 0 deletions src/GToolkit-Utility-System/TGtGroup.trait.st
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,8 @@ TGtGroup >> size [
TGtGroup >> sorted: aPredicate [
^ self items sorted: aPredicate
]

{ #category : #accessing }
TGtGroup >> withIndexDo: aBlock [
^ self items withIndexDo: aBlock
]

0 comments on commit 04014a9

Please sign in to comment.