Sha256: 923229530e820560c66d470ccf795188e3dd96ee14b5e421f059a82deb6934f6
Contents?: true
Size: 493 Bytes
Versions: 37
Compression:
Stored size: 493 Bytes
Contents
#!/usr/bin/env ruby require 'json' HERE = File.dirname(__FILE__) GITIGNORE_DIR = File.expand_path File.join HERE, '..', 'files', 'gitignore' names = Dir.chdir(GITIGNORE_DIR) do Dir['**/*.gitignore'].map {|path| path.match(/(.*)\.gitignore/)[1] } end puts JSON.pretty_generate({ save_options: false, vars: [ { name: "name", description: "name of gitignore.", required: true, type: { one_of: names, }, short: 'n', }, ], })
Version data entries
37 entries across 37 versions & 1 rubygems