bin/commands/groups.rb in slack-ruby-client-0.7.9 vs bin/commands/groups.rb in slack-ruby-client-0.8.0
- old
+ new
@@ -22,10 +22,11 @@
g.desc 'This method creates a private channel.'
g.long_desc %( This method creates a private channel. )
g.command 'create' do |c|
c.flag 'name', desc: 'Name of private channel to create.'
+ c.flag 'validate', desc: 'Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.'
c.action do |_global_options, options, _args|
puts JSON.dump($client.groups_create(options))
end
end
@@ -120,9 +121,10 @@
g.desc 'This method renames a private channel.'
g.long_desc %( This method renames a private channel. )
g.command 'rename' do |c|
c.flag 'channel', desc: 'Private channel to rename.'
c.flag 'name', desc: 'New name for private channel.'
+ c.flag 'validate', desc: 'Whether to return errors on invalid channel name instead of modifying it to meet the specified criteria.'
c.action do |_global_options, options, _args|
puts JSON.dump($client.groups_rename(options))
end
end