lib/jive.rb in jive-0.4.4 vs lib/jive.rb in jive-0.5.0
- old
+ new
@@ -6,10 +6,11 @@
require "uri"
require "jive/batch_runner"
require "jive/docker"
require "jive/git"
+require "jive/issue"
require "jive/popen"
require "jive/project"
require "jive/pull_request"
require "jive/repo"
require "jive/runner"
@@ -27,7 +28,21 @@
Jive::BatchRunner.new.run(tasks)
end
def self.shell
@shell ||= ::Jive::Shell.new
+ end
+
+ def self.home
+ @home ||= Pathname(Dir.home).join(".jive")
+ end
+
+ def self.prompt?(items, display: ->(x) { x })
+ CLI::UI::Prompt.ask("Choose?") do |handler|
+ items.each do |item|
+ handler.option(display.call(item)) do |_selection|
+ return item
+ end
+ end
+ end
end
end