Commit graph

57 commits

Author SHA1 Message Date
Jason Liquorish
265ed66d7d Add Windows support 2019-02-05 09:32:13 -08:00
Jonathan Dahan
91c7a412f0 Add support for spaces in commands (#75)
For example "git commit".

Fixes #74.
2019-01-14 09:28:48 +01:00
Danilo Bargen
9548f1dd1b
More clippy pedantism! (#70) 2018-12-07 12:25:25 +01:00
Danilo Bargen
f5e081ab68
Rust 2018 (#69) 2018-12-07 11:42:39 +01:00
Jan Christian Gruenhage
db2fe596ca Move from curl to reqwest
Fixes #60
2018-11-19 10:53:44 +01:00
Danilo Bargen
e73261542c
OS detection: Treat BSDs as "osx" (#58)
Since macOS is also a BSD under the hood, this will probably yield
better results.
2018-10-28 22:09:56 +01:00
Danilo Bargen
1dc3e0c8c4
Print detected OS with -v / --version (#57) 2018-10-28 22:09:44 +01:00
Danilo Bargen
bd7ee937de
Fix logging initialization (#56) 2018-10-28 21:52:55 +01:00
Danilo Bargen
f1988a645b Fix loading of configfile
- Don't require config file to exist for `--config-path` flag
- Make `--config-path` option pass-through
- Add a test for the `--config-path` flag
2018-10-22 18:03:49 +02:00
Danilo Bargen
e2d61e3ef2 Change wording of outdated cache message 2018-10-22 17:48:20 +02:00
equal-l2
78195a2589 Apply clippy suggestions 2018-10-21 14:49:25 +02:00
equal-l2
ac9db25691 Run rustfmt 2018-10-21 14:49:01 +02:00
Jonathan Dahan
8784b55ba8 Add --quiet flag to surpress non-error output (#48) 2018-09-18 21:12:21 +02:00
Danilo Bargen
f21e885d85 Syntax config path -> config path 2018-09-16 00:41:58 +02:00
Lukas Bergdoll
e8aa36beb3 Avoid overwriting existing config with --seed-config 2018-09-16 00:41:53 +02:00
Lukas Bergdoll
0c0b8d8f57 Generalize config
Else indentation
Serde rename
Generalize config, rename and make style member
2018-09-16 00:41:53 +02:00
Lukas Bergdoll
66b8a3daca Add syntax config support 2018-09-16 00:40:25 +02:00
Danilo Bargen
7941fbc727 Bump copyright year 2018-02-11 00:58:53 +01:00
anderejd
6fdf14df63 Move to Serde and upgrade all dependencies (#35)
- Do cargo upgrade --all
- Resolve build errors by moving from rustc-serialize to serde
2017-12-23 01:59:42 +01:00
Severen Redwood
aab4220029 Rename everything named tldr to tealdeer (#30) 2016-04-19 10:15:24 +02:00
Severen Redwood
26b8f519c4 Use rust-xdg for cache creation (#29)
* Add rust-xdg as a dependency
* Use rust-xdg to create the cache directory

Closes #10.
2016-04-18 18:40:28 +02:00
Danilo Bargen
6398f6594f Rename project (#26)
* Change name to "tealdeer"
* Rename repository as well
* Add logo
2016-04-16 10:20:16 +02:00
Danilo Bargen
30af8ca90f Moved test from main.rs to types.rs 2016-04-03 01:36:39 +02: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
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
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