abt-cli 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/abt +1 -1
- data/lib/abt.rb +4 -3
- data/lib/abt/cli.rb +70 -48
- data/lib/abt/cli/arguments_parser.rb +70 -0
- data/lib/abt/cli/base_command.rb +61 -0
- data/lib/abt/cli/prompt.rb +2 -2
- data/lib/abt/docs.rb +24 -18
- data/lib/abt/docs/cli.rb +42 -11
- data/lib/abt/docs/markdown.rb +36 -10
- data/lib/abt/git_config.rb +11 -0
- data/lib/abt/providers/asana/base_command.rb +13 -13
- data/lib/abt/providers/asana/commands/add.rb +3 -3
- data/lib/abt/providers/asana/commands/{branch-name.rb → branch_name.rb} +3 -3
- data/lib/abt/providers/asana/commands/clear.rb +17 -6
- data/lib/abt/providers/asana/commands/current.rb +3 -3
- data/lib/abt/providers/asana/commands/finalize.rb +3 -3
- data/lib/abt/providers/asana/commands/harvest_time_entry_data.rb +3 -3
- data/lib/abt/providers/asana/commands/init.rb +3 -3
- data/lib/abt/providers/asana/commands/pick.rb +13 -5
- data/lib/abt/providers/asana/commands/projects.rb +3 -3
- data/lib/abt/providers/asana/commands/share.rb +5 -5
- data/lib/abt/providers/asana/commands/start.rb +13 -7
- data/lib/abt/providers/asana/commands/tasks.rb +3 -3
- data/lib/abt/providers/asana/configuration.rb +5 -13
- data/lib/abt/providers/devops/base_command.rb +14 -15
- data/lib/abt/providers/devops/commands/boards.rb +6 -4
- data/lib/abt/providers/devops/commands/{branch-name.rb → branch_name.rb} +3 -3
- data/lib/abt/providers/devops/commands/clear.rb +17 -6
- data/lib/abt/providers/devops/commands/current.rb +3 -3
- data/lib/abt/providers/devops/commands/harvest_time_entry_data.rb +3 -3
- data/lib/abt/providers/devops/commands/init.rb +3 -3
- data/lib/abt/providers/devops/commands/pick.rb +12 -5
- data/lib/abt/providers/devops/commands/share.rb +4 -4
- data/lib/abt/providers/devops/commands/work-items.rb +3 -3
- data/lib/abt/providers/devops/configuration.rb +5 -13
- data/lib/abt/providers/git/commands/branch.rb +15 -21
- data/lib/abt/providers/harvest/base_command.rb +13 -13
- data/lib/abt/providers/harvest/commands/clear.rb +17 -6
- data/lib/abt/providers/harvest/commands/current.rb +3 -3
- data/lib/abt/providers/harvest/commands/init.rb +3 -3
- data/lib/abt/providers/harvest/commands/pick.rb +13 -5
- data/lib/abt/providers/harvest/commands/projects.rb +3 -3
- data/lib/abt/providers/harvest/commands/share.rb +5 -5
- data/lib/abt/providers/harvest/commands/start.rb +6 -42
- data/lib/abt/providers/harvest/commands/stop.rb +3 -3
- data/lib/abt/providers/harvest/commands/tasks.rb +3 -3
- data/lib/abt/providers/harvest/commands/track.rb +49 -11
- data/lib/abt/providers/harvest/configuration.rb +5 -11
- data/lib/abt/version.rb +1 -1
- metadata +6 -7
- data/lib/abt/providers/asana/commands/clear_global.rb +0 -24
- data/lib/abt/providers/devops/commands/clear_global.rb +0 -24
- data/lib/abt/providers/harvest/commands/clear_global.rb +0 -24
data/lib/abt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abt-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesper Sørensen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|
@@ -76,6 +76,8 @@ extra_rdoc_files: []
|
|
76
76
|
files:
|
77
77
|
- "./lib/abt.rb"
|
78
78
|
- "./lib/abt/cli.rb"
|
79
|
+
- "./lib/abt/cli/arguments_parser.rb"
|
80
|
+
- "./lib/abt/cli/base_command.rb"
|
79
81
|
- "./lib/abt/cli/prompt.rb"
|
80
82
|
- "./lib/abt/docs.rb"
|
81
83
|
- "./lib/abt/docs/cli.rb"
|
@@ -88,9 +90,8 @@ files:
|
|
88
90
|
- "./lib/abt/providers/asana/api.rb"
|
89
91
|
- "./lib/abt/providers/asana/base_command.rb"
|
90
92
|
- "./lib/abt/providers/asana/commands/add.rb"
|
91
|
-
- "./lib/abt/providers/asana/commands/
|
93
|
+
- "./lib/abt/providers/asana/commands/branch_name.rb"
|
92
94
|
- "./lib/abt/providers/asana/commands/clear.rb"
|
93
|
-
- "./lib/abt/providers/asana/commands/clear_global.rb"
|
94
95
|
- "./lib/abt/providers/asana/commands/current.rb"
|
95
96
|
- "./lib/abt/providers/asana/commands/finalize.rb"
|
96
97
|
- "./lib/abt/providers/asana/commands/harvest_time_entry_data.rb"
|
@@ -105,9 +106,8 @@ files:
|
|
105
106
|
- "./lib/abt/providers/devops/api.rb"
|
106
107
|
- "./lib/abt/providers/devops/base_command.rb"
|
107
108
|
- "./lib/abt/providers/devops/commands/boards.rb"
|
108
|
-
- "./lib/abt/providers/devops/commands/
|
109
|
+
- "./lib/abt/providers/devops/commands/branch_name.rb"
|
109
110
|
- "./lib/abt/providers/devops/commands/clear.rb"
|
110
|
-
- "./lib/abt/providers/devops/commands/clear_global.rb"
|
111
111
|
- "./lib/abt/providers/devops/commands/current.rb"
|
112
112
|
- "./lib/abt/providers/devops/commands/harvest_time_entry_data.rb"
|
113
113
|
- "./lib/abt/providers/devops/commands/init.rb"
|
@@ -121,7 +121,6 @@ files:
|
|
121
121
|
- "./lib/abt/providers/harvest/api.rb"
|
122
122
|
- "./lib/abt/providers/harvest/base_command.rb"
|
123
123
|
- "./lib/abt/providers/harvest/commands/clear.rb"
|
124
|
-
- "./lib/abt/providers/harvest/commands/clear_global.rb"
|
125
124
|
- "./lib/abt/providers/harvest/commands/current.rb"
|
126
125
|
- "./lib/abt/providers/harvest/commands/init.rb"
|
127
126
|
- "./lib/abt/providers/harvest/commands/pick.rb"
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Abt
|
4
|
-
module Providers
|
5
|
-
module Asana
|
6
|
-
module Commands
|
7
|
-
class ClearGlobal < BaseCommand
|
8
|
-
def self.command
|
9
|
-
'clear-global asana'
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.description
|
13
|
-
'Clear all global configuration'
|
14
|
-
end
|
15
|
-
|
16
|
-
def call
|
17
|
-
cli.warn 'Clearing Asana project configuration'
|
18
|
-
config.clear_global
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Abt
|
4
|
-
module Providers
|
5
|
-
module Devops
|
6
|
-
module Commands
|
7
|
-
class ClearGlobal < BaseCommand
|
8
|
-
def self.command
|
9
|
-
'clear-global devops'
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.description
|
13
|
-
'Clear all global configuration'
|
14
|
-
end
|
15
|
-
|
16
|
-
def call
|
17
|
-
cli.warn 'Clearing global DevOps configuration'
|
18
|
-
config.clear_global
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
@@ -1,24 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Abt
|
4
|
-
module Providers
|
5
|
-
module Harvest
|
6
|
-
module Commands
|
7
|
-
class ClearGlobal < BaseCommand
|
8
|
-
def self.command
|
9
|
-
'clear-global harvest'
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.description
|
13
|
-
'Clear all global configuration'
|
14
|
-
end
|
15
|
-
|
16
|
-
def call
|
17
|
-
cli.warn 'Clearing Harvest project configuration'
|
18
|
-
config.clear_global
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|