Sha256: 10156db2505a73c50ca3498488e1f58b49421d03bc77aa0974705b5d3e85ee3d
Contents?: true
Size: 1.12 KB
Versions: 18
Compression:
Stored size: 1.12 KB
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require_relative "../lib/pixab/version" require_relative '../lib/MergeRequest.rb' require_relative '../lib/ComponentSynchronizer.rb' require_relative '../lib/Localization.rb' require_relative '../lib/Package.rb' case ARGV[0] when 'merge' Pixab::MergeRequest.new(Pixab::RepoManager.new, ARGV[1..-1]).run when 'sync' repo_manager = Pixab::RepoManager.new synchronizer = Pixab::ComponentSynchronizer.new(repo_manager, ARGV[1..-1]) synchronizer.run is_need_commit = Pixab::Utilities.display_default_dialog("是否需要提交代码") if is_need_commit commands = ["-m"] if !synchronizer.updated_repo_names.empty? default_commit_msg = "[Feature]Update" synchronizer.updated_repo_names.each do |repo_name| default_commit_msg += " #{repo_name}" end commands.push("--commit-m") commands.push(default_commit_msg) end Pixab::MergeRequest.new(repo_manager, commands).run end when 'localize' Pixab::Localization.new.run(ARGV[1..-1]) when 'package' Pixab::Package.new.run when '--version' puts Pixab::VERSION else puts "Invalid command".red end
Version data entries
18 entries across 18 versions & 1 rubygems