Sha256: bb692dc7b3aaba993404e9cef2fef62778567bd4064790092f73c3bb15859977

Contents?: true

Size: 457 Bytes

Versions: 19

Compression:

Stored size: 457 Bytes

Contents

r_args = []

helper("help", binding)
helper("rubocop", binding)
helper("args", binding)

summary "Auto-fixes commits between HEAD and origin branch"
usage "rfix origin [opts] [path ..]"

run do |opts, args, _cmd|
  if main = opts[:"main-branch"]
    branch = Rfix::Branch::Name.new(main)
  else
    branch = Rfix::Branch::MAIN
  end

  # say "Using {{red:#{branch}}} as main branch"
  setup(r_args, opts, args, files: args.each.to_a, reference: branch)
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rfix-1.4.1 lib/rfix/commands/origin.rb
rfix-1.4.0.pre.201 lib/rfix/commands/origin.rb
rfix-1.4.0 lib/rfix/commands/origin.rb
rfix-1.3.0.pre.199 lib/rfix/commands/origin.rb
rfix-1.2.6.pre.198 lib/rfix/commands/origin.rb
rfix-1.2.6 lib/rfix/commands/origin.rb
rfix-1.2.2.pre.174 lib/rfix/commands/origin.rb
rfix-1.2.5 lib/rfix/commands/origin.rb
rfix-1.2.4 lib/rfix/commands/origin.rb
rfix-1.2.3.pre lib/rfix/commands/origin.rb
rfix-1.2.2.pre lib/rfix/commands/origin.rb
rfix-1.2.2.pre.172 lib/rfix/commands/origin.rb
rfix-1.2.2 lib/rfix/commands/origin.rb
rfix-1.1.0.pre.150 lib/rfix/commands/origin.rb
rfix-1.2.0 lib/rfix/commands/origin.rb
rfix-1.1.4.pre lib/rfix/commands/origin.rb
rfix-1.1.1.pre lib/rfix/commands/origin.rb
rfix-1.1.0.pre.149 lib/rfix/commands/origin.rb
rfix-1.1.0.pre.147 lib/rfix/commands/origin.rb