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

Version Path
ruby_leiningen-0.30.0.pre.2 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.30.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.29.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.28.0.pre.7 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.28.0.pre.6 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.28.0.pre.5 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.28.0.pre.4 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.28.0.pre.3 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.28.0.pre.2 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.28.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.27.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.26.0.pre.2 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.26.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.25.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.24.0.pre.8 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.24.0.pre.7 lib/ruby_leiningen/commands/plugins/cljfmt.rb