lib/octopolo/commands/issue.rb in octopolo-1.2.0 vs lib/octopolo/commands/issue.rb in octopolo-1.2.1
- old
+ new
@@ -1,11 +1,8 @@
desc "Create an issue for the current project."
command 'issue' do |c|
- config = Octopolo::Config.parse
- user_config = Octopolo::UserConfig.parse
-
c.desc "Use $EDITOR to update PR description before creating"
- c.switch [:e, :editor], :default_value => user_config.editor
+ c.switch [:e, :editor], :default_value => Octopolo.user_config.editor
c.action do |global_options, options, args|
require_relative '../scripts/issue'
options = global_options.merge(options)
Octopolo::Scripts::Issue.execute options