Sha256: 31cfcd55077ef150cd3cee662a4784c5eaf0021daedb1cb4156d0f6c82e81a00

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

require 'thor'
require 'active_support/inflector'
require 'verbs'

require 'event_sourcery_generators/generators/project'
require 'event_sourcery_generators/generators/command'
require 'event_sourcery_generators/generators/query'
require 'event_sourcery_generators/generators/reactor'

module EventSourceryGenerators
  class CLI < Thor
    # Creating projects
    register(Generators::Project, 'new', 'new [PROJECT NAME]', 'Creates a new EventSourcery project')

    # Creating components inside a project
    register(Generators::Command, 'generate:command', 'generate:command [AGGREGATE] [COMMAND]', 'Generates a new COMMAND for AGGREGATE')
    register(Generators::Query, 'generate:query', 'generate:query [NAME] [EVENT1 EVENT2 ...]', 'Generates a new query with the name NAME and an optional list of EVENTs to subscribe to')
    register(Generators::Reactor, 'generate:reactor', 'generate:reactor NAME [EVENT1 EVENT2 ...]', 'Generates a new Reactor with the name NAME and an optional list of EVENTs to subscribe to')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_sourcery_generators-0.2.0 lib/event_sourcery_generators/cli.rb