Sha256: e880d2eacf0cae9e80b5847058d5a3fc6b7a35f224f08378c250c1e4edb96780
Contents?: true
Size: 376 Bytes
Versions: 16
Compression:
Stored size: 376 Bytes
Contents
# frozen_string_literal: true require_relative '../../commands' RubyLeiningen::Commands.define_custom_command('cljfmt') do |config, opts| mode = opts[:mode] || :check paths = opts[:paths] || [] config.on_command_builder do |command| command = command.with_subcommand(mode.to_s) paths.inject(command) do |c, path| c.with_argument(path) end end end
Version data entries
16 entries across 16 versions & 1 rubygems