Sha256: a76f8f7b6a7e6fdf83720d679a3a960fb75b7fe05fd79f6798f7884e56559441
Contents?: true
Size: 752 Bytes
Versions: 1
Compression:
Stored size: 752 Bytes
Contents
#!/usr/bin/env ruby require "pry" require "thor" require_relative "../lib/localer" module Localer class CLI < Thor desc "version", "Print Localer version" def version say Localer::VERSION end desc "check", "Check I18n complete" def check if Localer.complete? say "\xE2\x9C\x94 No missing translations found.", :green else missing_translations = Localer.missing_translations say "\xE2\x9C\x96 Missing translations found (#{missing_translations.count}):", :red missing_translations.each do |tr| say "* #{tr}" end exit 1 end end desc "console", "Run console" def console binding.pry end end end Localer::CLI.start(ARGV)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
localer-0.0.1 | bin/localer |