Compare commits

...

4 Commits

Author SHA1 Message Date
Arthur Poulet 327acf8078
migrate 2019-02-18 12:10:40 +01:00
Arthur POULET 69dbf17a3e
Update readme 2018-12-02 12:11:27 +01:00
Arthur POULET d87acadb37
Update version 2018-09-22 23:45:56 +02:00
Arthur POULET 2337888f47
Update to crystal 0.26.1 2018-09-22 23:44:42 +02:00
4 changed files with 10 additions and 6 deletions

View File

@ -11,12 +11,14 @@ release:
test:
crystal spec
deps:
crystal deps install
shards install
deps_update:
crystal deps update
shards update
deps_opt:
@[ -d lib/ ] || make deps
doc:
crystal docs
clean:
rm $(NAME)
.PHONY: all run build release test deps deps_update doc
.PHONY: all run build release test deps deps_update clean doc

View File

@ -1,3 +1,5 @@
**Migrated to <https://git.sceptique.eu/Sceptique/todo>**
# todo
track your todo lists in your terminal
@ -6,7 +8,7 @@ track your todo lists in your terminal
### Requirements
- crystal (see the shards.yml file)
- crystal (see the shards.yml file) (tested with v0.27.0)
- shards
### Build

View File

@ -1,5 +1,5 @@
name: todo
version: 0.2.4
version: 1.0.1
authors:
- Arthur Poulet <arthur.poulet@mailoo.org>

View File

@ -37,7 +37,7 @@ module Todo::Exec
display = [] of Array(String)
list.each_with_index do |todo, idx|
p_id = idx.to_s.rjust(4, ' ').colorize.yellow
p_date_time = Time.parse(todo.date, ::Todo::Task::DATE_FORMAT) rescue nil
p_date_time = Time.parse_local(todo.date, ::Todo::Task::DATE_FORMAT) rescue nil
p_date_red = p_date_time && p_date_time < Time.now
p_date = todo.date.rjust(12, ' ').colorize.fore(p_date_red ? :red : :white).mode(p_date_red ? :bright : :dim).to_s
display << [todo.date, "#{p_id} | #{p_date} | #{todo.msg}"]