Sha256: 6ee4f32ee8c3ad646cdcef7d02ca51af3e78b9589a2bf5cfe8050f160b18606e

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 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
      },
      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.14 lib/phrase/tool/commands.rb
phrase-0.4.13 lib/phrase/tool/commands.rb
phrase-0.4.12 lib/phrase/tool/commands.rb