Sha256: 9f7c300fcab384c91c8fa4219cc304a9aa10210fa3afca1a0be376a2f447d75e

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

#!/usr/bin/env ruby
$LOAD_PATH << File.expand_path('../../lib', __FILE__)

require 'rubygems'
require 'dotman'

case ARGV.first
when 'clone'
  Dotman::Base.ensure_dotman_folder_exists
  Dotman::Git.klone(ARGV[1], ARGV[2])
when 'use'
  Dotman::User.set(ARGV[1])
when 'collect'
  Dotman::Collect.new.create_dotman
when 'list'
  Dotman::Notification.display_all_aliases
when 'delete'
  Dotman::DotfileCollection.delete(ARGV[1])
when 'alias'
  if ARGV[1] == 'rename'
    Dotman::DotfileCollection.change_alias(ARGV[2], ARGV[3])
  elsif ARGV[1] == 'list'
    Dotman::DotfileCollection.show_all_aliases
  end
else
  Dotman::Notification.show_help
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dotman-0.0.3.8 bin/dot
dotman-0.0.3.7 bin/dot
dotman-0.0.3.6 bin/dot
dotman-0.0.3.4 bin/dot