#!/usr/bin/env ruby require 'git-ready' require 'terminal-announce' if ARGV.empty? || %w(-h --help help).include?(ARGV.first) Announce.info 'Syntax: git-ready ' abort end organization = ARGV.first username = GitHub.api.user[:login] Announce.info "Forking all #{organization} repositories to #{username}" repositories = GitHub.fork_all organization Announce.info "Cloning all forked repositories into #{Settings.workspace}" Workspace.setup repositories