agile_utils 0.0.6 → 0.0.7
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/README.md +6 -0
- data/lib/agile_utils/base_option.rb +5 -25
- data/lib/agile_utils/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a284643a4b4dfdde3d91734ced9ebd20b150ece
|
4
|
+
data.tar.gz: 5348dc5209a681e78d073707252139ee8f60c4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca39c1ad7ee8d7ee982631666405c93e5049adb1ff88f1203ba38d095c139f6286e220e13b7593589991774b0671317b06461c905c4f3c1d44f84c3951187ceb
|
7
|
+
data.tar.gz: 7ac7e2011688c33d755974f989c9d1527f1c74bbf584e6795caf5b987252abbb51054e0e49c50bd990f27d68188464472d74616923d44f73712d38791e2b8d4b
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
module AgileUtils
|
3
3
|
# Store the options that will be shared by many CLI classes
|
4
4
|
module Options
|
5
|
-
|
5
|
+
|
6
6
|
BASE_DIR = [
|
7
7
|
:base_dir,
|
8
8
|
{ type: :string,
|
@@ -23,7 +23,7 @@ module AgileUtils
|
|
23
23
|
:non_exts,
|
24
24
|
{ type: :array,
|
25
25
|
aliases: '-f',
|
26
|
-
desc: 'List of files without
|
26
|
+
desc: 'List of files without extension to search for',
|
27
27
|
default: [] }
|
28
28
|
]
|
29
29
|
|
@@ -31,7 +31,7 @@ module AgileUtils
|
|
31
31
|
:inc_words,
|
32
32
|
{ type: :array,
|
33
33
|
aliases: '-n',
|
34
|
-
desc: 'List of words to be included in the result',
|
34
|
+
desc: 'List of words to be included in the result if any',
|
35
35
|
default: [] }
|
36
36
|
]
|
37
37
|
|
@@ -39,7 +39,7 @@ module AgileUtils
|
|
39
39
|
:exc_words,
|
40
40
|
{ type: :array,
|
41
41
|
aliases: '-x',
|
42
|
-
desc: 'List of words to be excluded from the result',
|
42
|
+
desc: 'List of words to be excluded from the result if any',
|
43
43
|
default: [] }
|
44
44
|
]
|
45
45
|
|
@@ -66,9 +66,8 @@ module AgileUtils
|
|
66
66
|
desc: 'Display version information',
|
67
67
|
default: false }
|
68
68
|
]
|
69
|
-
# }}}
|
70
69
|
|
71
|
-
#
|
70
|
+
# TODO: move this to `vim_printer` CLI
|
72
71
|
THEME = [
|
73
72
|
:theme,
|
74
73
|
{ type: :string,
|
@@ -76,24 +75,5 @@ module AgileUtils
|
|
76
75
|
desc: 'Vim colorscheme to use',
|
77
76
|
default: 'default' }
|
78
77
|
]
|
79
|
-
# }}}
|
80
|
-
|
81
|
-
# The default options text from the above options
|
82
|
-
def default_usage
|
83
|
-
<<-EOT
|
84
|
-
Options:
|
85
|
-
-b, [--base-dir=BASE_DIR] # Base directory
|
86
|
-
# Default: . (current directory)
|
87
|
-
-e, [--exts=one two three] # List of extensions to search for
|
88
|
-
-f, [--non-exts=one two three] # List of extensions to search for
|
89
|
-
-n, [--inc-words=one two three] # List of words to be included in the result
|
90
|
-
-x, [--exc-words=one two three] # List of words to be excluded from the result
|
91
|
-
-i, [--ignore-case], [--no-ignore-case] # Match case insensitively
|
92
|
-
# Default: true
|
93
|
-
-r, [--recursive], [--no-recursive] # Search for files recursively
|
94
|
-
# Default: true
|
95
|
-
-v, [--version], [--no-version] # Display version information
|
96
|
-
EOT
|
97
|
-
end
|
98
78
|
end
|
99
79
|
end
|
data/lib/agile_utils/version.rb
CHANGED