Skip to content

Commit

Permalink
Apply the configuration once we read it. fixes #4
Browse files Browse the repository at this point in the history
  • Loading branch information
stonesong committed Jan 24, 2020
1 parent 45c9d9b commit ebcebde
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ validation
activate
self activateHelp ifTrue: [ ^ self ].
self validateConfigurationFile.
self createConfigurationFromFile.
self readConfigurationAndApply.
(self hasOption: 'save')
ifTrue: [ Smalltalk snapshot: true andQuit: false ].
self exitSuccess

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
validation
readConfigurationAndApply
| file cinicConfig |
file := self firstJsonFileArgument.
cinicConfig := Cinic readFileNamed: file asFileReference.
cinicConfig apply

0 comments on commit ebcebde

Please sign in to comment.