Sha256: 4936eafef7f3dafd8d95fbcfce62449c6a059929baa615ee7e0f12303784dfd9

Contents?: true

Size: 347 Bytes

Versions: 10

Compression:

Stored size: 347 Bytes

Contents

require_relative '../../commands'

RubyLeiningen::Commands.define_custom_command("cljstyle") 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

10 entries across 10 versions & 1 rubygems

Version Path
ruby_leiningen-0.24.0.pre.6 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.24.0.pre.5 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.24.0.pre.4 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.24.0.pre.3 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.24.0.pre.2 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.24.0.pre.1 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.23.0 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.22.0.pre.1 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.21.0 lib/ruby_leiningen/commands/plugins/cljstyle.rb
ruby_leiningen-0.20.0.pre.1 lib/ruby_leiningen/commands/plugins/cljstyle.rb