class ChefCLI::Command::Diff
def print_diff
def print_diff # eagerly evaluate locks so we hit any errors before we've entered # pagerland. Also, git commands behave weirdly when run while the pager # is active, doing this eagerly also avoids that issue materialize_locks Pager.new(enable_pager: config[:pager]).with_pager do |pager| differ = differ(pager.ui) differ.run_report end end