mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-03 11:30:15 +01:00
check for use of token with the command line
This commit is contained in:
parent
a8a699da1f
commit
3fa40279f4
1 changed files with 7 additions and 2 deletions
|
|
@ -51,6 +51,8 @@
|
||||||
|
|
||||||
# Instantiate this template: ./tracks_template_cli -c 1 -f template_file.txt
|
# Instantiate this template: ./tracks_template_cli -c 1 -f template_file.txt
|
||||||
|
|
||||||
|
# Template can also be read from STDIN, however, then you have specify all tokens with -k
|
||||||
|
|
||||||
require 'net/https'
|
require 'net/https'
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
require 'cgi'
|
require 'cgi'
|
||||||
|
|
@ -278,8 +280,11 @@ module Gtd
|
||||||
|
|
||||||
newtok=line.split(' ')[1]
|
newtok=line.split(' ')[1]
|
||||||
|
|
||||||
print "Input required for "+newtok+": "
|
if @keywords[newtok].nil?
|
||||||
@keywords[newtok]=gets.chomp
|
print "Input required for "+newtok+": "
|
||||||
|
@keywords[newtok]=gets.chomp
|
||||||
|
end
|
||||||
|
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue