cmdlet 0.12.3 → 0.12.4
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/.builders/data/cmdlets/misc.json +26 -1
- data/.builders/generators/cmdlets/misc.rb +12 -1
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +7 -0
- data/lib/cmdlet/_.rb +1 -0
- data/lib/cmdlet/misc/makebold.rb +16 -0
- data/lib/cmdlet/misc/omit.rb +1 -1
- data/lib/cmdlet/version.rb +1 -1
- data/package-lock.json +2 -2
- data/package.json +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ac1f9cec2a63ca7a67176e3fb1a4454728983197774656e150f2a6ee7d831c4
|
4
|
+
data.tar.gz: 418abd752083b08235e10b2940a8b66d62b8502f5a920a1d0cab958e13a6a23c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 911ddef9bd40a35be8fdc9c9e99badc401795d3d5e1ad999ccfcdeb71b9c6075ebc21e5d6c5969e90e33b2d46bf92a9f4062012ab7ea06592f77d083237d8dcf
|
7
|
+
data.tar.gz: a32764b510e3636e5dc08041b40c551c7af9a887b894103f63be16cc3d4f885ea87568cdb31b6a4e5b5a404128bacf768b71cc2b79d566f8b3b70ca020f7247e
|
@@ -33,7 +33,7 @@
|
|
33
33
|
"comment_out"
|
34
34
|
],
|
35
35
|
"description": "this content will not get written out, useful for commenting out code",
|
36
|
-
"result": "empty
|
36
|
+
"result": "empty string",
|
37
37
|
"category": "misc",
|
38
38
|
"category_description": "Miscellaneous cmdlets",
|
39
39
|
"base_class_require": null,
|
@@ -52,6 +52,31 @@
|
|
52
52
|
],
|
53
53
|
"ruby": " ''\n"
|
54
54
|
},
|
55
|
+
{
|
56
|
+
"name": "makebold",
|
57
|
+
"aliases": [
|
58
|
+
|
59
|
+
],
|
60
|
+
"description": "Sample to bold some text",
|
61
|
+
"result": "Testing an ID",
|
62
|
+
"category": "misc",
|
63
|
+
"category_description": "Miscellaneous cmdlets",
|
64
|
+
"base_class_require": null,
|
65
|
+
"base_class": null,
|
66
|
+
"parameters": [
|
67
|
+
{
|
68
|
+
"name": "value",
|
69
|
+
"description": "block",
|
70
|
+
"splat": null,
|
71
|
+
"default": null,
|
72
|
+
"param_type": "Handlebars Block"
|
73
|
+
}
|
74
|
+
],
|
75
|
+
"examples": [
|
76
|
+
|
77
|
+
],
|
78
|
+
"ruby": " \"<b>Testing an ID</b>\"\n"
|
79
|
+
},
|
55
80
|
{
|
56
81
|
"name": "format_json",
|
57
82
|
"aliases": [
|
@@ -20,7 +20,7 @@ KManager.action :misc_commands do
|
|
20
20
|
name :omit
|
21
21
|
aliases %i[ignore comment_out]
|
22
22
|
description 'this content will not get written out, useful for commenting out code'
|
23
|
-
result 'empty
|
23
|
+
result 'empty string'
|
24
24
|
|
25
25
|
parameter :value, 'value to omit', param_type: 'String|Int'
|
26
26
|
|
@@ -28,6 +28,17 @@ KManager.action :misc_commands do
|
|
28
28
|
''
|
29
29
|
RUBY
|
30
30
|
end
|
31
|
+
.cmdlet do
|
32
|
+
name :makebold
|
33
|
+
description 'Sample to bold some text'
|
34
|
+
result 'Testing an ID'
|
35
|
+
|
36
|
+
parameter :value, 'block', param_type: 'Handlebars Block'
|
37
|
+
|
38
|
+
ruby <<-RUBY
|
39
|
+
"<b>Testing an ID</b>"
|
40
|
+
RUBY
|
41
|
+
end
|
31
42
|
.cmdlet do
|
32
43
|
name :format_json
|
33
44
|
description 'FormatJson will take an object and write it out as pretty JSON'
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [0.12.3](https://github.com/klueless-io/cmdlet/compare/v0.12.2...v0.12.3) (2023-07-19)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add omit ([e0a2da7](https://github.com/klueless-io/cmdlet/commit/e0a2da7608faadf97ded72e24defdf3b6783aa9f))
|
7
|
+
|
1
8
|
## [0.12.2](https://github.com/klueless-io/cmdlet/compare/v0.12.1...v0.12.2) (2023-07-19)
|
2
9
|
|
3
10
|
|
data/lib/cmdlet/_.rb
CHANGED
@@ -32,6 +32,7 @@ require_relative 'inflection/pluralize_number'
|
|
32
32
|
require_relative 'inflection/pluralize_number_word'
|
33
33
|
require_relative 'inflection/singularize'
|
34
34
|
require_relative 'misc/format_json'
|
35
|
+
require_relative 'misc/makebold'
|
35
36
|
require_relative 'misc/omit'
|
36
37
|
require_relative 'misc/safe'
|
37
38
|
require_relative 'str/padl'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Cmdlet
|
4
|
+
# Miscellaneous cmdlets
|
5
|
+
module Misc
|
6
|
+
# Makebold: Sample to bold some text
|
7
|
+
class Makebold < Cmdlet::BaseCmdlet
|
8
|
+
#
|
9
|
+
# @param [Handlebars Block] value - block
|
10
|
+
# @return [String] Testing an ID
|
11
|
+
def call(value)
|
12
|
+
"<b>#{value}</b>"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/cmdlet/misc/omit.rb
CHANGED
data/lib/cmdlet/version.rb
CHANGED
data/package-lock.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "cmdlet",
|
3
|
-
"version": "0.12.
|
3
|
+
"version": "0.12.4",
|
4
4
|
"lockfileVersion": 2,
|
5
5
|
"requires": true,
|
6
6
|
"packages": {
|
7
7
|
"": {
|
8
8
|
"name": "cmdlet",
|
9
|
-
"version": "0.12.
|
9
|
+
"version": "0.12.4",
|
10
10
|
"devDependencies": {
|
11
11
|
"@klueless-js/semantic-release-rubygem": "github:klueless-js/semantic-release-rubygem",
|
12
12
|
"@semantic-release/changelog": "^6.0.1",
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cmdlet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- lib/cmdlet/inflection/pluralize_number_word.rb
|
131
131
|
- lib/cmdlet/inflection/singularize.rb
|
132
132
|
- lib/cmdlet/misc/format_json.rb
|
133
|
+
- lib/cmdlet/misc/makebold.rb
|
133
134
|
- lib/cmdlet/misc/omit.rb
|
134
135
|
- lib/cmdlet/misc/safe.rb
|
135
136
|
- lib/cmdlet/str/padl.rb
|