Sha256: 41442637426a7f6d9336cfc7bebac86b4487c9267090ba7e69c530d052908cc4

Contents?: true

Size: 559 Bytes

Versions: 30

Compression:

Stored size: 559 Bytes

Contents

require_relative '../../commands'

RubyLeiningen::Commands.define_custom_command("kibit") do |config, opts|
  paths = opts[:paths] || []

  config.on_subcommand_builder do |command|
    command = command.with_flag("--replace") if opts[:replace]
    command = command.with_flag("--interactive") if opts[:interactive]
    command = command
        .with_option("--reporter", opts[:reporter]) if opts[:reporter]
    command
  end
  config.on_command_builder do |subcommand|
    paths.inject(subcommand) do |s, path|
      s.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/kibit.rb
ruby_leiningen-0.24.0.pre.5 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.24.0.pre.4 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.24.0.pre.3 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.24.0.pre.2 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.24.0.pre.1 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.23.0 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.22.0.pre.1 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.21.0 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.20.0.pre.1 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.19.0 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.18.0.pre.1 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.17.0 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.16.0.pre.1 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.15.0 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.14.0.pre.1 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.13.0 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.12.0.pre.2 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.12.0.pre.1 lib/ruby_leiningen/commands/plugins/kibit.rb
ruby_leiningen-0.11.0 lib/ruby_leiningen/commands/plugins/kibit.rb