Sha256: c94910bb5d32c967bc1d2aa3a7167b6cf42b25c3410af5b65ef84b45ed998aca

Contents?: true

Size: 931 Bytes

Versions: 47

Compression:

Stored size: 931 Bytes

Contents

require 'mixlib/cli'
require 'rbconfig'
require 'pathname'
require 'idlc-sdk-pfm/command/base'
require 'idlc-sdk-pfm/generator'

module Pfm
  module Command
    # ## SharedGeneratorOptions
    #
    # These CLI options are shared amongst the generator commands
    module SharedGeneratorOptions
      include Mixlib::CLI

      # You really want these to have default values, as
      # they will likely be used all over the place.
      # option :verbose,
      #        short:        '-V',
      #        long:         '--verbose',
      #        description:  'Show detailed output from the generator',
      #        boolean:      true,
      #        default:      false
    end

    # ## GeneratorCommands
    #
    # This module is the namespace for all subcommands of `pfm generate`
    module GeneratorCommands
      def self.build(class_name, params)
        const_get(class_name).new(params)
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
idlc-sdk-pfm-1.0.0.rc6 lib/idlc-sdk-pfm/command/generator_commands.rb
idlc-sdk-pfm-1.0.0.rc5 lib/idlc-sdk-pfm/command/generator_commands.rb
idlc-sdk-pfm-1.0.0.rc4 lib/idlc-sdk-pfm/command/generator_commands.rb
idlc-sdk-pfm-1.0.0.rc3 lib/idlc-sdk-pfm/command/generator_commands.rb
idlc-sdk-pfm-1.0.0.rc2 lib/idlc-sdk-pfm/command/generator_commands.rb
idlc-sdk-pfm-1.0.0.pre.2 lib/idlc-sdk-pfm/command/generator_commands.rb
idlc-sdk-pfm-1.0.0.rc1 lib/idlc-sdk-pfm/command/generator_commands.rb