bin/commands/users_prefs.rb in slack-ruby-client-2.0.0 vs bin/commands/users_prefs.rb in slack-ruby-client-2.1.0
- old
+ new
@@ -1,13 +1,19 @@
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake
-desc 'UsersPrefs methods.'
-command 'users_prefs' do |g|
- g.desc "Returns the user's preferences (undocumented)"
- g.long_desc %( Returns the user's preferences )
- g.command 'get' do |c|
- c.action do |_global_options, options, _args|
- puts JSON.dump($client.users_prefs_get(options))
+module Slack
+ module Cli
+ class App
+ desc 'UsersPrefs methods.'
+ command 'users_prefs' do |g|
+ g.desc "Returns the user's preferences (undocumented)"
+ g.long_desc %( Returns the user's preferences )
+ g.command 'get' do |c|
+ c.action do |_global_options, options, _args|
+ puts JSON.dump(@client.users_prefs_get(options))
+ end
+ end
+ end
end
end
end