blob: 93e858f7c5409105f808bcfd12ec2d2f59f0eaeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env ruby
dir = File.join(__dir__, "..", "gitignore")
inputs = ARGV.map { |a| ["#{a.downcase}.gitignore", nil] }.to_h
Dir
.entries(dir)
.select { |f| inputs.include?(f.downcase) }
.each do |f|
File.open(File.join(dir, f)) do |f|
IO.copy_stream(f, $stdout)
end
end
__END__
__ _ __ _ _ _
/ _` |/ _` | | | |
| (_| | (_| | |_| |
\__, |\__,_|\__, |
|___/ |___/
|