10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/robotkit/cli.rb', line 10
def self.start
options = {}
prompt = TTY::Prompt.new(help_color: :cyan)
options[:output_dir] = prompt.ask('What is library name?', default: 'SampleLibrary')
options[:package_name] = prompt.ask('What is package name?', default: 'com.android.sample')
options[:module_name] = prompt.ask('What is module name?', default: options[:output_dir].downcase)
options[:min_sdk] = prompt.ask('Type min_sdk version', default: 16)
options[:target_sdk] = prompt.ask('Type target_sdk version', default: 25)
library_choices = %w(android-maven-gradle-plugin)
options[:library_options] = prompt.multi_select("Select library module options: ", library_choices)
Robotkit.exec(options)
puts "#{options[:output_dir]} created"
end
|