File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 11module Bashly
22 module Commands
33 class Preview < Base
4+ using ComposeRefinements
5+
46 help "Generate the bash script to STDOUT"
57
68 usage "bashly preview"
@@ -9,7 +11,7 @@ class Preview < Base
911 environment "BASHLY_SOURCE_DIR" , "The path containing the bashly configuration and source files [default: src]"
1012
1113 def run
12- config = Config . new "#{ Settings . source_dir } /bashly.yml"
14+ config = Config . new ( "#{ Settings . source_dir } /bashly.yml" ) . compose
1315 command = Script ::Command . new ( config )
1416 script = Script ::Wrapper . new command
1517 puts script . code
Original file line number Diff line number Diff line change 11module Bashly
22 module Commands
33 class Validate < Base
4+ using ComposeRefinements
5+
46 help "Scan the configuration file for errors"
57
68 usage "bashly validate"
@@ -9,7 +11,7 @@ class Validate < Base
911 environment "BASHLY_SOURCE_DIR" , "The path containing the bashly configuration and source files [default: src]"
1012
1113 def run
12- config = Config . new "#{ Settings . source_dir } /bashly.yml"
14+ config = Config . new ( "#{ Settings . source_dir } /bashly.yml" ) . compose
1315 validator = ConfigValidator . new config
1416 validator . validate
1517 say "!txtgrn!OK"
Original file line number Diff line number Diff line change 11module Bashly
22 module Libraries
33 class Completions < Base
4+ using ComposeRefinements
5+
46 protected
57 def command
68 @command ||= Script ::Command . new config
79 end
810
911 def config
10- @config ||= Bashly ::Config . new "#{ Settings . source_dir } /bashly.yml"
12+ @config ||= Bashly ::Config . new ( "#{ Settings . source_dir } /bashly.yml" ) . compose
1113 end
1214 end
1315 end
You can’t perform that action at this time.
0 commit comments