require 'rubygems' require 'cli/command' require 'zip/zip' require 'zip/zipfilesystem' module Factor module CLI class Channel < 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 NAME DIRECTORY", "add a key and value for the credential" def add(name,directory) #contents=File.open(File.expand_path(filename), "rb") {|f| f.read} puts @client.add_channel(name,directory) end desc "remove NAME", "remove a workflow" def remove(name) puts @client.remove_channel(name) end end end end