Sha256: 355c6c41b9dfed24332891af2bd05c9c7156c20aa4f637c6a28c0e247904988e

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

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,
        skip_unverification: false
      },
      pull: {
        format: nil,
        target: nil,
        tag: nil,
        updated_since: nil,
        include_empty_translations: 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

2 entries across 2 versions & 1 rubygems

Version Path
phrase-0.4.18 lib/phrase/tool/commands.rb
phrase-0.4.17 lib/phrase/tool/commands.rb