lib/dru/cli.rb in dru-0.4.0 vs lib/dru/cli.rb in dru-0.5.0

- old
+ new

@@ -16,9 +16,21 @@ require_relative 'version' puts "v#{Dru::VERSION}" end map %w(--version -v) => :version + desc 'down', 'Stops containers and removes containers, networks, volumes, and images created by `up`.' + method_option :help, aliases: '-h', type: :boolean, + desc: 'Display usage information' + def down(*) + if options[:help] + invoke :help, ['down'] + else + require_relative 'commands/down' + Dru::Commands::Down.new.execute + end + end + desc 'attach', 'Attach local standard input, output, and error streams to a running container' method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information' method_option :container, aliases: '-c', type: :string, default: 'app', desc: 'Container name'