Sha256: 991794f0df6811ac3db80edeb63b96671a1ab3b6d9b5293a3c66ccd604ea4e57
Contents?: true
Size: 683 Bytes
Versions: 5
Compression:
Stored size: 683 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'pathname' require 'songbook' require 'songbook/generate_song_files' input_path = Songbook.select_input_path(ARGV.first) output_path = Songbook.select_output_path(input_path: input_path, output_path: ARGV.drop(1).last) input_pathname = Pathname.new(input_path) output_pathname = Pathname.new(output_path) service = if input_pathname.file? Songbook::GenerateSongFile.new( input_path: input_path, output_path: output_path, verbose: true ) else output_pathname.mkpath Songbook::GenerateSongFiles.new( input_path: input_path, output_path: output_path, verbose: true ) end service.call
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
songbook-0.5.1 | exe/songbook |
songbook-0.5.0 | exe/songbook |
songbook-0.4.0 | exe/songbook |
songbook-0.3.1 | exe/songbook |
songbook-0.3.0 | exe/songbook |