dblock/slack-ruby-client

View on GitHub
bin/commands/functions_workflows_steps_responses.rb

Summary

Maintainability
A
1 hr
Test Coverage
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Cli
    class App
      desc 'FunctionsWorkflowsStepsResponses methods.'
      command 'functions_workflows_steps_responses' do |g|
        g.desc 'Download form responses of a workflow'
        g.long_desc %( Download form responses of a workflow )
        g.command 'export' do |c|
          c.flag 'step_id', desc: 'The ID of the OpenForm step to export.'
          c.flag 'workflow', desc: 'The workflow encoded ID or workflow reference.'
          c.flag 'workflow_app_id', desc: 'The app tied to the workflow reference.'
          c.flag 'workflow_id', desc: 'The workflow ID, starts with Wf*.'
          c.action do |_global_options, options, _args|
            puts JSON.dump(@client.functions_workflows_steps_responses_export(options))
          end
        end
      end
    end
  end
end