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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 699611ad61cde3c72f79d281cecd5c11fea37209852f2a14550331bf2b3e1cf8
4
- data.tar.gz: c4567567ebf77209ff858d2b8ac57baa5d406735415e9bcf0ae24342ea3023e8
3
+ metadata.gz: d96bb27765c031f9998dfa45406581de1852f0fbdc0abff4bcea45b679963299
4
+ data.tar.gz: d40011ef4d521dd738fb594095366ee7e506bc35c9bad83e2ad421eeedab16bb
5
5
  SHA512:
6
- metadata.gz: 00b64e995bfb20a3476c49794ca661ab9cbf5d216664c1fd94de3517017c94e76149aa2a3159129921edfa512ccdf2e9f413d7c214d39ff3d2e05108635636c5
7
- data.tar.gz: 31a1dd4fd12927a39425516da9e25744c8092968a5b06188cb16b2221bae81fae1a1362d50f0d27908048b30e8cc02c8c3b64aac4b7ce0a6d828d38d127e0f73
6
+ metadata.gz: f4777538a7b6f116f56c24382b9f3ea54ca78d5306009a3876857ff963f481561ff28e5c925cf0e62152e686caaa3c54e3abe90f48f16cb6e7cd6f87ede9f857
7
+ data.tar.gz: 1bfab61e86f92ff9284207627615f07a701092afb6bd6f839471833db3610fb60c8e013c56b57a50329c67650e1a778c6581adb61804f4365675cb1838cb7c4f
data/HISTORY.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 8.4.1 (2021-01-04)
4
+ * Bugfix docopt error on `event` command.
5
+
3
6
  ## 8.4.0 (2020-12-16)
4
7
  * Add `-f raw` option to dump the raw API response.
5
8
  * Bugfix `set` subcommand, which was not reliable on certain object types.
@@ -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 time] [-i | -e time] " \
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 time at which #{thing} begins",
35
- "-e, --end=TIME time at which #{thing} ends",
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}",
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'fileutils'
4
4
  require 'open3'
5
+ require 'etc'
5
6
  require 'wavefront-sdk/support/mixins'
6
7
  require_relative 'base'
7
8
  require_relative 'command_mixins/tag'
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- WF_CLI_VERSION = '8.4.0'
3
+ WF_CLI_VERSION = '8.4.1'
@@ -22,7 +22,6 @@ unless defined?(CMD)
22
22
  'Content-Type': 'application/json', Accept: 'application/json'
23
23
  }.freeze
24
24
  BAD_TAG = '*BAD_TAG*'
25
- TW = 80
26
25
  HOME_CONFIG = Pathname.new(ENV['HOME']) + '.wavefront'
27
26
  end
28
27
 
@@ -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.0
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: 2020-12-18 00:00:00.000000000 Z
11
+ date: 2021-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt