Sha256: fee92c76f7f5ce12e0e054cc11989b4c139e0a4a127af4665f220fa5370fa5b7

Contents?: true

Size: 378 Bytes

Versions: 16

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

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

16 entries across 16 versions & 1 rubygems

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