bin/commands/functions.rb
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
module Slack
module Cli
class App
desc 'Functions methods.'
command 'functions' do |g|
g.desc 'Signal that a function failed to complete'
g.long_desc %( Signal that a function failed to complete )
g.command 'completeError' do |c|
c.flag 'error', desc: 'A human-readable error message that contains information about why the function failed to complete.'
c.flag 'function_execution_id', desc: 'Context identifier that maps to the executed function.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.functions_completeError(options))
end
end
g.desc 'Signal the successful completion of a function'
g.long_desc %( Signal the successful completion of a function )
g.command 'completeSuccess' do |c|
c.flag 'function_execution_id', desc: 'Context identifier that maps to the executed function.'
c.flag 'outputs', desc: 'A JSON-based object that conforms to the output parameters schema for the custom function defined in the manifest.'
c.action do |_global_options, options, _args|
puts JSON.dump(@client.functions_completeSuccess(options))
end
end
end
end
end
end