taskmapper-cli 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/tm +17 -2
  2. data/lib/tm.rb +1 -0
  3. data/lib/tm/version.rb +1 -1
  4. metadata +3 -3
data/bin/tm CHANGED
@@ -35,6 +35,21 @@ desc 'Authentication for provider'
35
35
  arg_name "'token:password, username:user'"
36
36
  flag [:a, :authentication]
37
37
 
38
+ desc 'Generate provider skeleton'
39
+ arg_name 'Command for generating a taskmapper provider skeleton'
40
+ command :generate do |c|
41
+ c.desc 'Provider name'
42
+ c.flag 'provider-name'
43
+
44
+ c.action do |global_options, options, args|
45
+ if options[:'provider-name']
46
+ TM::Commands::GenerateProvider.create(options[:'provider-name'])
47
+ else
48
+ puts "Please specified a provider name with --provider-name option"
49
+ end
50
+ end
51
+ end
52
+
38
53
  desc 'Manage iteration with projects'
39
54
  arg_name 'Command for managing projects'
40
55
  command :project do |c|
@@ -181,8 +196,8 @@ command :comment do |c|
181
196
  global_options[:authentication]),
182
197
  formatter,
183
198
  options[:'project-attribute']).execute(
184
- options[:'task-attribute'],
185
- options[:'comment-attribute'])
199
+ options[:'task-attribute'],
200
+ options[:'comment-attribute'])
186
201
  end
187
202
  end
188
203
  end
data/lib/tm.rb CHANGED
@@ -17,6 +17,7 @@ require 'tm/commands/last_task'
17
17
  require 'tm/commands/single_task'
18
18
  require 'tm/commands/create_task'
19
19
  require 'tm/commands/create_comment'
20
+ require 'tm/commands/generate_provider'
20
21
 
21
22
  # Formatters
22
23
  require 'tm/commands/list_all_comments_for_task'
data/lib/tm/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tm
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taskmapper-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -413,7 +413,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
413
413
  version: '0'
414
414
  segments:
415
415
  - 0
416
- hash: 1822266939625810085
416
+ hash: 1265386982677400225
417
417
  required_rubygems_version: !ruby/object:Gem::Requirement
418
418
  none: false
419
419
  requirements:
@@ -422,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
422
422
  version: '0'
423
423
  segments:
424
424
  - 0
425
- hash: 1822266939625810085
425
+ hash: 1265386982677400225
426
426
  requirements: []
427
427
  rubyforge_project:
428
428
  rubygems_version: 1.8.25