wavefront-cli 8.4.0 → 8.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +3 -0
- data/lib/wavefront-cli/commands/event.rb +5 -3
- data/lib/wavefront-cli/event.rb +1 -0
- data/lib/wavefront-cli/version.rb +1 -1
- data/spec/spec_helper.rb +0 -1
- data/spec/wavefront-cli/controller_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d96bb27765c031f9998dfa45406581de1852f0fbdc0abff4bcea45b679963299
|
4
|
+
data.tar.gz: d40011ef4d521dd738fb594095366ee7e506bc35c9bad83e2ad421eeedab16bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4777538a7b6f116f56c24382b9f3ea54ca78d5306009a3876857ff963f481561ff28e5c925cf0e62152e686caaa3c54e3abe90f48f16cb6e7cd6f87ede9f857
|
7
|
+
data.tar.gz: 1bfab61e86f92ff9284207627615f07a701092afb6bd6f839471833db3610fb60c8e013c56b57a50329c67650e1a778c6581adb61804f4365675cb1838cb7c4f
|
data/HISTORY.md
CHANGED
@@ -13,7 +13,7 @@ class WavefrontCommandEvent < WavefrontCommandBase
|
|
13
13
|
["list #{CMN} [-l] [-O fields] [-s start] [-e end] " \
|
14
14
|
'[-L limit] [-o cursor]',
|
15
15
|
"describe #{CMN} <id>",
|
16
|
-
"create #{CMN} [-d description] [-s
|
16
|
+
"create #{CMN} [-d description] [-s start] [-i | -e end] " \
|
17
17
|
'[-S severity] [-T type] [-H host...] [-g tag...] [-N] <event>',
|
18
18
|
"close #{CMN} [<id>]",
|
19
19
|
"delete #{CMN} <id>",
|
@@ -31,8 +31,10 @@ class WavefrontCommandEvent < WavefrontCommandBase
|
|
31
31
|
"-o, --cursor=EVENT start listing from given #{thing}",
|
32
32
|
'-O, --fields=F1,F2,... only show given fields',
|
33
33
|
"-L, --limit=COUNT number of #{things} to list",
|
34
|
-
"-s, --start=TIME
|
35
|
-
"
|
34
|
+
"-s, --start=TIME start of listed #{things} or time at which " \
|
35
|
+
"#{thing} begins",
|
36
|
+
"-e, --end=TIME end of listed #{things} or time at which " \
|
37
|
+
"#{thing} ends",
|
36
38
|
"-S, --severity=SEVERITY severity of #{thing}",
|
37
39
|
"-i, --instant create an instantaneous #{thing}",
|
38
40
|
"-T, --type=TYPE type of #{thing}",
|
data/lib/wavefront-cli/event.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -22,6 +22,18 @@ class WavefrontCliHelpTest < MiniTest::Test
|
|
22
22
|
assert_match(/^ \w+ --help$/, e.message)
|
23
23
|
end
|
24
24
|
|
25
|
+
def test_commands_no_args
|
26
|
+
SupportedCommands.new.all.each do |cmd|
|
27
|
+
_test_command_no_args(cmd)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def _test_command_no_args(cmd)
|
32
|
+
capture_io { WavefrontCliController.new([cmd]) }
|
33
|
+
rescue SystemExit => e
|
34
|
+
assert e.message.end_with?("wf #{cmd} --help")
|
35
|
+
end
|
36
|
+
|
25
37
|
def test_version
|
26
38
|
capture_io { WavefrontCliController.new(%w[--version]) }
|
27
39
|
rescue SystemExit => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wavefront-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.4.
|
4
|
+
version: 8.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Fisher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|