Sha256: ecf62d5a07ca7fa0f28de6d60ab94f891dd94e2186ecea9c052d275a40c49e92

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/inline"
gemfile do
  source "https://rubygems.org"
  gem "multi_repo", require: "multi_repo/cli", path: File.expand_path("..", __dir__)
end

opts = Optimist.options do
  opt :old, "The old label names.", :type => :strings, :required => true
  opt :new, "The new label names.", :type => :strings, :required => true

  MultiRepo::CLI.common_options(self)
end

rename_hash = opts[:old].zip(opts[:new]).to_h
puts "Renaming: #{rename_hash.pretty_inspect}"
puts

MultiRepo::CLI.each_repo(**opts) do |repo|
  MultiRepo::Helpers::RenameLabels.new(repo.name, rename_hash, **opts).run
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
multi_repo-0.2.1 scripts/rename_labels
multi_repo-0.2.0 scripts/rename_labels
multi_repo-0.1.2 scripts/rename_labels
multi_repo-0.1.1 scripts/rename_labels
multi_repo-0.1.0 scripts/rename_labels