lib/pdk/cli/new.rb in pdk-2.7.1 vs lib/pdk/cli/new.rb in pdk-3.0.0

- old
+ new

@@ -1,14 +1,16 @@ -module PDK::CLI - @new_cmd = @base_cmd.define_command do - name 'new' - usage 'new <thing> [options]' - summary 'create a new module, etc.' - description 'Creates a new <thing> using relevant options.' - default_subcommand 'help' - end +module PDK + module CLI + @new_cmd = @base_cmd.define_command do + name 'new' + usage 'new <thing> [options]' + summary 'create a new module, etc.' + description 'Creates a new <thing> using relevant options.' + default_subcommand 'help' + end - @new_cmd.add_command Cri::Command.new_basic_help + @new_cmd.add_command Cri::Command.new_basic_help + end end require 'pdk/cli/new/class' require 'pdk/cli/new/defined_type' require 'pdk/cli/new/module'