Sha256: 95673a79cb9cd3cf149cb6cc6c552d563c073b89969478ca7f3fbdaa816bbb42

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 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
      },
      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

6 entries across 6 versions & 1 rubygems

Version Path
phrase-0.4.24 lib/phrase/tool/commands.rb
phrase-0.4.23 lib/phrase/tool/commands.rb
phrase-0.4.22 lib/phrase/tool/commands.rb
phrase-0.4.21 lib/phrase/tool/commands.rb
phrase-0.4.20 lib/phrase/tool/commands.rb
phrase-0.4.19 lib/phrase/tool/commands.rb