Sha256: 41dacfc3399102102864bffea34c51388610a39f150a3a03bcc2bfb4b991051a

Contents?: true

Size: 381 Bytes

Versions: 42

Compression:

Stored size: 381 Bytes

Contents

desc "View and delete stale branches"
command 'stale-branches' do |c|
  c.desc "Delete the stale branches (default: false)"
  c.switch :delete, :negatable => false

  c.action do |global_options, options, args|
    require_relative '../scripts/stale_branches'
    options = global_options.merge(options)
    Octopolo::Scripts::StaleBranches.new(options[:delete]).execute
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
octopolo-0.0.2 lib/octopolo/commands/stale_branches.rb
octopolo-0.0.1 lib/octopolo/commands/stale_branches.rb