73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# File 'lib/git-media.rb', line 73
def self.run!
cmd = ARGV.shift cmd_opts = case cmd
when "filter-clean" require 'git-media/filter-clean'
GitMedia::FilterClean.run!
when "filter-smudge"
require 'git-media/filter-smudge'
GitMedia::FilterSmudge.run!
when "clear" require 'git-media/clear'
GitMedia::Clear.run!
when "sync"
require 'git-media/sync'
GitMedia::Sync.run!
when 'status'
require 'git-media/status'
Trollop::options do
opt :force, "Force status"
end
GitMedia::Status.run!
else
raise "unknown media subcommand #{cmd.inspect}"
end
end
|