Sha256: f83c1fd303f65fde8278c96528d520c0722d2e6c17f894f8e0f3f8cda9a16029

Contents?: true

Size: 1018 Bytes

Versions: 3

Compression:

Stored size: 1018 Bytes

Contents

# -*- encoding : utf-8 -*-

module Phrase::Tool::Commands
  def self.possible_commands_with_options
    {
      default: {
        version: false,
        help: false
      },
      init: {
        secret: "",
        default_locale: "en",
        domain: "phrase",
        format: nil,
        locale_filename: nil,
        locale_directory: nil,
        target_directory: nil 
      },
      push: {
        tags: [],
        recursive: false,
        locale: nil,
        format: nil,
        update_translations: false
      },
      pull: {
        format: nil,
        target: nil,
        tag: nil
      },
      tags: {
        list: true
      }
    }
  end

  def self.possible_commands
    self.possible_commands_with_options.keys
  end
end

require "phrase/tool/commands/base"
require "phrase/tool/commands/init"
require "phrase/tool/commands/push"
require "phrase/tool/commands/pull"
require "phrase/tool/commands/tags"
require "phrase/tool/commands/show_version"
require "phrase/tool/commands/show_help"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phrase-0.4.11 lib/phrase/tool/commands.rb
phrase-0.4.10 lib/phrase/tool/commands.rb
phrase-0.4.9 lib/phrase/tool/commands.rb