From 330c856014130b599d85d90e2f943d23ab1efc19 Mon Sep 17 00:00:00 2001 From: elijah Date: Sat, 23 Feb 2013 20:52:38 -0800 Subject: minor improvements to wording of inline command help --- lib/leap_cli/commands/test.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/leap_cli/commands/test.rb') diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb index e895a5e..80a6333 100644 --- a/lib/leap_cli/commands/test.rb +++ b/lib/leap_cli/commands/test.rb @@ -1,23 +1,23 @@ module LeapCli; module Commands - desc 'Run tests' - command :test do |c| - c.desc 'Creates files needed to run tests' - c.command :init do |c| - c.action do |global_options,options,args| + desc 'Run tests.' + command :test do |test| + test.desc 'Creates files needed to run tests.' + test.command :init do |init| + init.action do |global_options,options,args| generate_test_client_cert generate_test_client_openvpn_config end end - c.desc 'Run tests' - c.command :run do |c| - c.action do |global_options,options,args| + test.desc 'Run tests.' + test.command :run do |run| + run.action do |global_options,options,args| log 'not yet implemented' end end - c.default_command :run + test.default_command :run end private -- cgit v1.2.3