Sha256: d0574dafcd67f607cc6f24d12c681c06f0eda681e7926b164af1e72f3bd51bfb

Contents?: true

Size: 697 Bytes

Versions: 5

Compression:

Stored size: 697 Bytes

Contents

#!/usr/bin/env ruby
require 'pathname'
require 'byebug'

source_path = (Pathname.new(__FILE__).dirname + '../lib').expand_path
$LOAD_PATH << source_path

require 'mobile_workflow_cli'

if ARGV.empty?
  puts "USAGE: mwf <directory> <OpenAPI Spec file path> [options]"
  puts "See --help for more info"
  exit 0
elsif ['-v', '--version'].include? ARGV[0]
  puts MobileWorkflowCli::VERSION
  exit 0
end

templates_root = File.expand_path(File.join("..", "templates"), File.dirname(__FILE__))
MobileWorkflowCli::AppGenerator.source_root templates_root
MobileWorkflowCli::AppGenerator.source_paths << Rails::Generators::AppGenerator.source_root << templates_root

MobileWorkflowCli::AppGenerator.start

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mobile_workflow_cli-0.1.4 bin/mwf
mobile_workflow_cli-0.1.3 bin/mwf
mobile_workflow_cli-0.1.2 bin/mwf
mobile_workflow_cli-0.1.1 bin/mwf
mobile_workflow_cli-0.1.0 bin/mwf