require 'rubygems'
require 'cli/command'
require 'zip/zip'
require 'zip/zipfilesystem'

module Factor
  module CLI
    class ChannelTask < Command

      desc "call CHANNEL METHOD TARGET","start a workflow"
      method_option :parameters, :type=>:hash, :default=>{}, :required=>false
      def call(channel, method, target)
        
        puts "not implemented"

      end
  
      
      
      desc "list", "list all the channels"
      #method_option :key, :alias=>"-k", :type=>:string, :desc=>"key reference"
      def list
        puts @client.get_channels
      end
    
      desc "add DIRECTORY DEFINITION", "add a key and value for the credential"
      def add(directory,definition_file)
        puts @client.add_channel(directory,definition_file)
      end
    
      desc "remove NAME", "remove a workflow"
      def remove(name)
        puts @client.remove_channel(name)
      end
  

    end
  end
end