Sha256: 0d6a0dad7db36dc388b49481cde12fd7a2fae3d6d082aeff0e471edd9248b227

Contents?: true

Size: 1.25 KB

Versions: 5

Compression:

Stored size: 1.25 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,
        skip_upload_tags: false,
        convert_emoji: nil
      },
      pull: {
        format: nil,
        target: nil,
        tag: nil,
        updated_since: nil,
        include_empty_translations: nil,
        convert_emoji: nil,
        encoding: nil,
        skip_unverified_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

5 entries across 5 versions & 1 rubygems

Version Path
phrase-0.4.33 lib/phrase/tool/commands.rb
phrase-0.4.32 lib/phrase/tool/commands.rb
phrase-0.4.31 lib/phrase/tool/commands.rb
phrase-0.4.30 lib/phrase/tool/commands.rb
phrase-0.4.29 lib/phrase/tool/commands.rb