Sha256: d46923c68d29e1e127a9cb62300e23185a74c899d91ac1704eadc22aa5a4c364

Contents?: true

Size: 907 Bytes

Versions: 4

Compression:

Stored size: 907 Bytes

Contents

require 'thor'
require 'middleman-core'
require 'middleman-core/cli'
require 'middleman-core/profiling'
require 'kanpachi'
require 'kanpachi/commands/new'

# doc template requires these gems
require 'inflecto'
require 'json'

ENV['MM_ROOT'] = File.join(File.expand_path(File.dirname(__FILE__)), 'doc', 'template')

class Middleman::Cli::Server
  default_task :server
end

class Middleman::Cli::Build
  default_task :build
end

module Kanpachi
  class CLI < Thor
    namespace :kanpachi

    register Commands::New, 'new', 'new [NAME]', 'Generate a new API'

    task = ::Middleman::Cli::Server.tasks['server']
    register ::Middleman::Cli::Server, 'server', task.usage, task.description, task.options

    task = ::Middleman::Cli::Build.tasks['build']
    register ::Middleman::Cli::Build, 'build', task.usage, task.description, task.options
  end
end

require 'kanpachi/doc/middleman-ext/middleman-deploy'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kanpachi-0.0.7 lib/kanpachi/cli.rb
kanpachi-0.0.6 lib/kanpachi/cli.rb
kanpachi-0.0.5 lib/kanpachi/cli.rb
kanpachi-0.0.4 lib/kanpachi/cli.rb