Sha256: 4f44c179dd0d4e198076080286054c3c1e819f252166c651de38aa2f71bbf593

Contents?: true

Size: 621 Bytes

Versions: 1

Compression:

Stored size: 621 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require "thor"
require "habluhablu"

# Class comment
class CLI < Thor
  desc "help", "some"
  desc "<language>", "Generate file .yml"
  long_desc <<-LONGDESC
    Generate files including basic phrases translations (using with I18n gem).
  LONGDESC
  def language(symbol)
    Habluhablu.hablu(symbol)
    if File.exist?("config/locales/#{symbol}.yml")
      puts "..."
      sleep 0.5
      puts "File for #{symbol.upcase} language has been generated successfully!"
    else
      puts "Something went wrong!"
    end
  end
end

CLI.start(ARGV)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
habluhablu-0.1.4 bin/habluhablu