require 'piperun'
require 'thor'

module Piperun
  class CLI < Thor
    #description "Process files with pipelines"
    #version Piperun::VERSION

    default_task :build

    desc "build", "Build the project."
    def build
      project = Piperun::Project.load "Pipeline.rb"
      project.run
    end

    desc "watch", "Watch the project"
    def watch
      project = Piperun::Project.load "Pipeline.rb"
      project.run
      project.watch
    end
  end
end


require 'piperun'
require 'thor'

module Piperun
  class CLI < Thor
    #description "Process files with pipelines"
    #version Piperun::VERSION

    default_task :build

    desc "build", "Build the project."
    def build
      project = Piperun::Project.load "Pipefile.rb"
      project.run
    end

    desc "watch", "Watch the project"
    def watch
      project = Piperun::Project.load "Pipefile.rb"
      project.run
      project.watch
    end
  end
end


Use a Pipefile.rb instead of Piperun.rb
Use a Pipefile.rb instead of Piperun.rb
