lib/spoom/cli/config.rb in spoom-1.1.16 vs lib/spoom/cli/config.rb in spoom-1.2.0
- old
+ new
@@ -11,13 +11,14 @@
default_task :show
desc "show", "Show Sorbet config"
def show
- in_sorbet_project!
- config = sorbet_config
+ context = context_requiring_sorbet!
+ config = context.sorbet_config
+ config_path = Pathname.new("#{exec_path}/#{Spoom::Sorbet::CONFIG_PATH}").cleanpath
- say("Found Sorbet config at `#{sorbet_config_file}`.")
+ say("Found Sorbet config at `#{config_path}`.")
say("\nPaths typechecked:")
if config.paths.empty?
say(" * (default: .)")
else