Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 21 lines (14 sloc) 399 Bytes
#!/usr/bin/env ruby
# frozen_string_literal: true
source_path = File.dirname(__dir__)
$LOAD_PATH.unshift(source_path)
require 'lib/usesthis/api'
config_path = File.join(source_path, 'config.json')
config = JSON.parse(File.read(config_path), symbolize_names: true)
puts 'Building API...'
UsesThis::API.generate(
Dir.pwd,
config[:destination],
config.slice(:category_names)
)
puts 'Done!'
You can’t perform that action at this time.