desc "preview"
task :preview do
    puts "preview"
end

desc 'want to say hello'
task :hello , [:name, :from] => :preview do |t, args|
  puts "hello world, #{args[:name]} from #{args[:from]}!"
end

task :default => :hello

相关文章:

  • 2021-09-22
  • 2022-12-23
  • 2021-05-16
  • 2021-12-06
  • 2021-10-30
  • 2022-12-23
  • 2021-09-14
猜你喜欢
  • 2021-08-13
  • 2021-06-21
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
相关资源
相似解决方案