Sha256: 1ac2775f6ba33a5e342bc2c28f589e4348aecd106914c3e3191758313db39532
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
module GitPrettyAccept class App include Methadone::Main include Methadone::CLILogging main do |branch| if branch == 'master' error "You're trying to accept master as a pull request branch. " + "Please checkout to master instead and accept this branch " + "from there." exit! else options[:edit] = true if options[:edit].nil? Transaction.new(branch, options[:edit]).call end end description "Accept pull requests, the pretty way" on "--[no-]edit", "Edit merge message before committing. (Default: --edit)" arg :branch version GitPrettyAccept::VERSION use_log_level_option end end
Version data entries
4 entries across 4 versions & 1 rubygems