Sha256: 649abccdd25202f837507335936be51d95d5d0638f5f0358379fc88aacf0f473
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'lgit' if ARGV.size.zero? puts 'Specify command' exit 1 end git = Lgit::Git.new case ARGV[0] when 'branch' git.create_branch(ARGV[1], ARGV[2]) when 'rebase' if git.get_branch == git.get_default_branch puts "Error: Cannot rebase #{git.get_default_branch}!" exit 2 end git.rebase ARGV[1] when 'delete-branches' git.delete_branches else puts 'Invalid command' exit 3 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lgit-0.5.1 | exe/lgit |