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