Sha256: e46acadb0d1f6de87a445e94df25e663d5d009cf269fbe7831ddf12324818142

Contents?: true

Size: 345 Bytes

Versions: 30

Compression:

Stored size: 345 Bytes

Contents

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

30 entries across 30 versions & 1 rubygems

Version Path
ruby_leiningen-0.24.0.pre.6 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.24.0.pre.5 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.24.0.pre.4 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.24.0.pre.3 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.24.0.pre.2 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.24.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.23.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.22.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.21.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.20.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.19.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.18.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.17.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.16.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.15.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.14.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.13.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.12.0.pre.2 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.12.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.11.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb