Sha256: 4d0b60c0755ed8dbadc46303800ebfde1228439888c44d27f8d430c7514a7993
Contents?: true
Size: 1.24 KB
Versions: 5
Compression:
Stored size: 1.24 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' require_relative '../lib/LocalizationSmartcat.rb' case ARGV[0] when '--version' puts Pixab::VERSION 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 'localizePhrase' Pixab::Localization.new.run(ARGV[1..-1]) when 'package' Pixab::Package.new.run when 'localize' Pixab::LocalizationSmartcat.new.run(ARGV[1..-1]) else puts "Invalid command".red end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
pixab-1.7.5 | exe/pixab |
pixab-1.7.3 | exe/pixab |
pixab-1.7.2 | exe/pixab |
pixab-1.7.1 | exe/pixab |
pixab-1.7.0 | exe/pixab |