Danilo Bargen
8e643b7987
Fix code formatting and update .gitignore
2016-04-03 00:25:06 +02:00
Danilo Bargen
ccaf9c9f27
Fix cache updating
...
For some reason, the cache was not actually being updated because the
`Archive.unpack()` method doesn't overwrite any files.
So now we clear the cache directory before unpacking the archive.
Fixes #18 .
2016-04-03 00:06:36 +02:00
Danilo Bargen
fb62eaaaad
Fix detection of outdated cache
2016-02-07 23:10:28 +01:00
Danilo Bargen
db5fab2d87
Handle errors in Tokenizer::next_token
2016-01-27 18:06:38 +01:00
Danilo Bargen
ecf77b5297
Fix some problems reported by clippy
2016-01-27 17:49:19 +01:00
Danilo Bargen
e00fe75d37
Add clippy
2016-01-27 17:49:19 +01:00
Danilo Bargen
dcd80a92b2
Enable more compiler lints
2016-01-27 17:48:43 +01:00
Danilo Bargen
d47208f273
License under MIT/Apache-2.0
2016-01-27 17:48:43 +01:00
Danilo Bargen
6e4fc487a9
Implement --list flag
2016-01-27 17:39:17 +01:00
Danilo Bargen
ea7965a775
Derive Copy for OsType
2016-01-27 13:56:29 +01:00
Danilo Bargen
4c5666884b
Simplify logic in Cache::find_page
2016-01-27 13:55:52 +01:00
Danilo Bargen
0d871091d3
Create Cache::get_platform_dir
2016-01-27 13:55:17 +01:00
Danilo Bargen
152343eaef
Underline parameters in example code
2016-01-26 10:22:03 +01:00
Danilo Bargen
1e69f4ac4e
Make it possible to override the OS
2016-01-22 08:29:27 +01:00
Danilo Bargen
eac7308ba7
Fix argument format
2016-01-22 08:29:14 +01:00
Danilo Bargen
a07f7e00dc
Implement Decodable for OsType
2016-01-22 08:29:10 +01:00
Danilo Bargen
34fa7d94b4
Create OsType enum
2016-01-19 18:49:16 +01:00
Danilo Bargen
55bbd78360
Implement --clear-cache flag
2016-01-10 22:39:11 +01:00
Danilo Bargen
4a59dc6798
Render pages from cache
2016-01-10 00:33:51 +01:00
Danilo Bargen
4e951a0247
Rename Updater to Cache
2016-01-08 19:19:03 +01:00
Danilo Bargen
75d5fd5257
Revert accidental breakage of archive URL
...
Localhost URL was used for development in the train with a flaky
internet connection.
2016-01-08 19:18:44 +01:00
Danilo Bargen
b2ea2c3842
Warn if cache is too old or missing
2016-01-08 18:55:40 +01:00
Danilo Bargen
4db20cb6bb
Implement Updater.last_update
2016-01-08 08:40:34 +01:00
Danilo Bargen
062d209113
Update README
2016-01-06 23:48:08 +01:00
Danilo Bargen
676ab62b4e
Remove obsolete functions in updater
2016-01-06 23:33:52 +01:00
Danilo Bargen
bb14466213
Unpack tldr archive directly into ~/.cache/tldr-rs
2016-01-06 23:25:44 +01:00
Danilo Bargen
68b3ff23bc
Allow --update to be run on its own
2016-01-06 23:24:56 +01:00
Danilo Bargen
bb72cd1a0f
Stop printing arguments on invocation
2016-01-06 23:21:40 +01:00
Danilo Bargen
e0c9a85bd0
Implement command handling
2016-01-06 22:13:29 +01:00
Danilo Bargen
83e5e3622c
Implement --update flag
2016-01-06 22:13:09 +01:00
Danilo Bargen
d321bef678
Reorder argument parsing handlers
2016-01-06 18:53:07 +01:00
Danilo Bargen
da43892451
Implement --render flag
2016-01-06 18:49:48 +01:00
Danilo Bargen
5c75798d19
Implement --version flag
2016-01-06 18:45:01 +01:00
Danilo Bargen
d4a43212cd
Move formatter to separate module
2016-01-06 18:37:49 +01:00
Danilo Bargen
9343c52f13
Add argument parsing
2016-01-06 08:11:59 +01:00
Danilo Bargen
ab44af7d36
Deserialize index.json, copy tldr pages to cache
2016-01-03 23:41:52 +01:00
Danilo Bargen
b315741a21
Create cache dir if it doesn't exist yet
2016-01-03 21:27:22 +01:00
Danilo Bargen
e7e3211cd5
Download and decompress tldr pages
2016-01-01 15:20:34 +01:00
Danilo Bargen
c90e3499e5
Add color support
2015-12-30 09:07:01 +01:00
Danilo Bargen
1bec44f15e
Print line values to stdout
2015-12-30 08:55:31 +01:00
Danilo Bargen
c645b93899
Introduce optional logging
2015-12-30 08:49:37 +01:00
Danilo Bargen
1452ff627d
Moved tokenizer and types to separate modules
2015-12-29 19:02:01 +01:00
Danilo Bargen
3925cdbec0
Implement classification of token types
2015-12-29 14:11:11 +01:00
Danilo Bargen
ba0283a1e7
Initial version: Simply print content without formatting
2015-12-29 10:22:37 +01:00