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.10.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.9.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.8.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.7.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.6.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.5.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.4.0.pre.1 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.3.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.2.0.pre.2 lib/ruby_leiningen/commands/plugins/cljfmt.rb
ruby_leiningen-0.1.0 lib/ruby_leiningen/commands/plugins/cljfmt.rb