bin/commands/admin_apps.rb in slack-ruby-client-0.17.0 vs bin/commands/admin_apps.rb in slack-ruby-client-1.0.0

- old
+ new

@@ -35,6 +35,17 @@ c.flag 'team_id', desc: 'The ID of the workspace to approve the app on.' c.action do |_global_options, options, _args| puts JSON.dump($client.admin_apps_restrict(options)) end end + + g.desc 'Uninstall an app from one or many workspaces, or an entire enterprise organization.' + g.long_desc %( Uninstall an app from one or many workspaces, or an entire enterprise organization. ) + g.command 'uninstall' do |c| + c.flag 'app_id', desc: 'The ID of the app to uninstall.' + c.flag 'enterprise_id', desc: 'The enterprise to completely uninstall the application from (across all workspaces). With an org-level token, this or team_ids is required.' + c.flag 'team_ids', desc: 'IDs of the teams to uninstall from (max 100). With an org-level token, this or enterprise_id is required.' + c.action do |_global_options, options, _args| + puts JSON.dump($client.admin_apps_uninstall(options)) + end + end end