Sha256: 3836eba01d214a783f6a5c2073938ba9b1524f3e45d3b9c8942cdde29d897053
Contents?: true
Size: 506 Bytes
Versions: 2
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true module Rodbot class CLI module Commands class New < Rodbot::CLI::Command desc 'Create a new Rodbot scaffold in PATH' argument :path, required: true, desc: 'Root directory of the new bot' example [ 'my_awesome_bot' ] def rescued_call(path:, **) Rodbot::Generator .new(Rodbot.env.gem.join('lib', 'templates', 'new')) .write(Pathname(path)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rodbot-0.5.1 | lib/rodbot/cli/commands/new.rb |
rodbot-0.5.0 | lib/rodbot/cli/commands/new.rb |