na 1.2.22 → 1.2.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/bin/na +8 -8
- data/lib/na/version.rb +1 -1
- data/src/_README.md +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 156cd1491d6307f4e28005d50c7b7fd0bd9d40da460533fa5a52e0a472ead137
|
4
|
+
data.tar.gz: fc1900ffb0aa9984f039aa9ca8f3b85fb787069f31a7ed2d071c786b4fe2638b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 190d47fd1308faf2401234d9dc28c02ed61c89888a5fa96139ffad51a6ff41f0f48babb90971c132c3e890abeaf3177b878fa94363bd8a4f534b2eab7dadf43c
|
7
|
+
data.tar.gz: 6e40bf25ec1e3dd609181c467c4d885efbd9a634e8ab90424f4d443683d01d8594bace90df10c47cc12a498caae12e32efff20d0ad2d749508406bd838b05401
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
_If you're one of the rare people like me who find this useful, feel free to
|
10
10
|
[buy me some coffee][donate]._
|
11
11
|
|
12
|
-
The current version of `na` is 1.2.
|
12
|
+
The current version of `na` is 1.2.23
|
13
13
|
.
|
14
14
|
|
15
15
|
`na` ("next action") is a command line tool designed to make it easy to see what your next actions are for any project, right from the command line. It works with TaskPaper-formatted files (but any plain text format will do), looking for `@na` tags (or whatever you specify) in todo files in your current folder.
|
@@ -77,7 +77,7 @@ SYNOPSIS
|
|
77
77
|
na [global options] command [command options] [arguments...]
|
78
78
|
|
79
79
|
VERSION
|
80
|
-
1.2.
|
80
|
+
1.2.23
|
81
81
|
|
82
82
|
GLOBAL OPTIONS
|
83
83
|
-a, --add - Add a next action (deprecated, for backwards compatibility)
|
@@ -87,13 +87,13 @@ GLOBAL OPTIONS
|
|
87
87
|
-d, --depth=DEPTH - Recurse to depth (default: 1)
|
88
88
|
--[no-]debug - Display verbose output
|
89
89
|
--ext=EXT - File extension to consider a todo file (default: taskpaper)
|
90
|
-
-f, --file=PATH - Use a single file as global todo, use
|
90
|
+
-f, --file=PATH - Use a single file as global todo, use initconfig to make permanent (default: none)
|
91
91
|
--help - Show this message
|
92
92
|
-n, --note - Prompt for additional notes (deprecated, for backwards compatibility)
|
93
93
|
-p, --priority=PRIORITY - Set a priority 0-5 (deprecated, for backwards compatibility) (default: none)
|
94
94
|
-r, --[no-]recurse - Recurse 3 directories deep (deprecated, for backwards compatability)
|
95
95
|
-t, --na_tag=TAG - Tag to consider a next action (default: na)
|
96
|
-
--template=PATH - Provide a template for new/blank todo files, use
|
96
|
+
--template=PATH - Provide a template for new/blank todo files, use initconfig to make permanent (default: none)
|
97
97
|
--version - Display the program version
|
98
98
|
|
99
99
|
COMMANDS
|
data/bin/na
CHANGED
@@ -43,11 +43,11 @@ class App
|
|
43
43
|
arg_name 'PRIORITY'
|
44
44
|
flag %i[p priority]
|
45
45
|
|
46
|
-
desc 'Use a single file as global todo, use
|
46
|
+
desc 'Use a single file as global todo, use initconfig to make permanent'
|
47
47
|
arg_name 'PATH'
|
48
48
|
flag %i[f file]
|
49
49
|
|
50
|
-
desc 'Provide a template for new/blank todo files, use
|
50
|
+
desc 'Provide a template for new/blank todo files, use initconfig to make permanent'
|
51
51
|
arg_name 'PATH'
|
52
52
|
flag %[template]
|
53
53
|
|
@@ -278,7 +278,7 @@ class App
|
|
278
278
|
res = NA.yn(NA::Color.template('{by}Specified file not found, create it'), default: true)
|
279
279
|
if res
|
280
280
|
basename = File.basename(target, ".#{NA.extension}")
|
281
|
-
NA.create_todo(target, basename)
|
281
|
+
NA.create_todo(target, basename, template: global_options[:template])
|
282
282
|
else
|
283
283
|
puts NA::Color.template('{r}Cancelled{x}')
|
284
284
|
Process.exit 1
|
@@ -290,7 +290,7 @@ class App
|
|
290
290
|
res = NA.yn(NA::Color.template('{by}Specified file not found, create it'), default: true)
|
291
291
|
if res
|
292
292
|
basename = File.basename(target, ".#{NA.extension}")
|
293
|
-
NA.create_todo(target, basename)
|
293
|
+
NA.create_todo(target, basename, template: global_options[:template])
|
294
294
|
else
|
295
295
|
puts NA::Color.template('{r}Cancelled{x}')
|
296
296
|
Process.exit 1
|
@@ -319,7 +319,7 @@ class App
|
|
319
319
|
NA.notify('{r}Cancelled{x}', exit_code: 1) unless res
|
320
320
|
|
321
321
|
basename = File.basename(target, ".#{NA.extension}")
|
322
|
-
NA.create_todo(target, basename)
|
322
|
+
NA.create_todo(target, basename, template: global_options[:template])
|
323
323
|
end
|
324
324
|
|
325
325
|
end
|
@@ -330,7 +330,7 @@ class App
|
|
330
330
|
if res
|
331
331
|
basename = File.expand_path('.').split('/').last
|
332
332
|
target = "#{basename}.#{NA.extension}"
|
333
|
-
NA.create_todo(target, basename)
|
333
|
+
NA.create_todo(target, basename, template: global_options[:template])
|
334
334
|
files = NA.find_files(depth: 1)
|
335
335
|
end
|
336
336
|
end
|
@@ -906,7 +906,7 @@ class App
|
|
906
906
|
c.example 'na init', desc: 'Generate a new todo file, prompting for project name'
|
907
907
|
c.example 'na init warpspeed', desc: 'Generate a new todo for a project called warpspeed'
|
908
908
|
|
909
|
-
c.action do |
|
909
|
+
c.action do |global_options, _options, args|
|
910
910
|
reader = TTY::Reader.new
|
911
911
|
if args.count.positive?
|
912
912
|
project = args.join(' ')
|
@@ -923,7 +923,7 @@ class App
|
|
923
923
|
|
924
924
|
end
|
925
925
|
|
926
|
-
NA.create_todo(target, project)
|
926
|
+
NA.create_todo(target, project, template: global_options[:template])
|
927
927
|
end
|
928
928
|
end
|
929
929
|
|
data/lib/na/version.rb
CHANGED
data/src/_README.md
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
_If you're one of the rare people like me who find this useful, feel free to
|
10
10
|
[buy me some coffee][donate]._
|
11
11
|
|
12
|
-
The current version of `na` is <!--VER-->1.2.
|
12
|
+
The current version of `na` is <!--VER-->1.2.22<!--END VER-->.
|
13
13
|
|
14
14
|
`na` ("next action") is a command line tool designed to make it easy to see what your next actions are for any project, right from the command line. It works with TaskPaper-formatted files (but any plain text format will do), looking for `@na` tags (or whatever you specify) in todo files in your current folder.
|
15
15
|
|