Sha256: 3ae7a74987d116f0a8a0952990c1a9d100eff25ac73bc6d15497f32832db0065

Contents?: true

Size: 1.33 KB

Versions: 2

Compression:

Stored size: 1.33 KB

Contents

# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-2.4.0 bin/commands/functions.rb
slack-ruby-client-2.3.0 bin/commands/functions.rb