Commit graph

273 commits

Author SHA1 Message Date
Danilo Bargen
5d8448c442 Require Rust 1.40 (was 1.39) 2021-01-29 12:16:38 +01:00
Danilo Bargen
127124eded Optimize get_languages function
- Replace `Result` parameters with `Option`
- Replace `HashSet` for deduplication with linear search based approach
- Avoid intermediate allocations

This reduces the instruction count in release mode by almost 50%.
2021-01-29 12:05:01 +01:00
Danilo Bargen
e5d359b935 Language tests: Group into module 2021-01-29 00:08:23 +01:00
Niklas Mohrin
1db4b409bc Add support for multiple languages (#125)
The implementation follows the tldr-pages client spec:
https://github.com/tldr-pages/tldr/blob/master/CLIENT-SPECIFICATION.md#language

Fixes #96
2021-01-29 00:00:10 +01:00
tveness
0c75e34007
Fix tar markdown rendering test (#159)
tldr-pages repository changed file
https://github.com/tldr-pages/tldr/blob/master/pages/common/tar.md
and so test was failing
2021-01-13 23:32:02 +01:00
Danilo Bargen
c632407a25 README: Move up link to docs 2020-11-15 00:03:48 +01:00
Danilo Bargen
b1a08af00a Link to docs in Cargo.toml 2020-11-15 00:03:15 +01:00
Danilo Bargen
1ebb80bb14
Merge pull request #155 from dbrgn/docs-cache-config
Document location of cache directory. Fixes #151.
2020-11-15 00:02:49 +01:00
Danilo Bargen
931a5fc13c Docs: Document location of cache directory 2020-11-15 00:00:15 +01:00
Danilo Bargen
c33c146a17 Docs: Add README 2020-11-14 23:55:49 +01:00
Danilo Bargen
6d07e78613
Remove xdg dependency (#152)
It's not being used anymore.
2020-11-08 13:15:52 +01:00
Danilo Bargen
dff8da40a5 Docs: Add screenshot to intro page 2020-11-01 01:52:01 +01:00
Danilo Bargen
5ca8461dd8
Merge pull request #150 from dbrgn/mdbook
The README has gotten really long, it's getting hard to read. Instead, extract user docs into an mdbook page deployed through GH pages.
2020-11-01 01:49:37 +01:00
Danilo Bargen
e24d86c900 Deploy docs through CI 2020-11-01 01:40:04 +01:00
Danilo Bargen
ddeb81b249 Add mdbook documentation 2020-11-01 01:39:47 +01:00
Danilo Bargen
e35dd5e30c README: Simplify color docs 2020-11-01 00:26:19 +01:00
Tomás Farías Santana
9236f0d4a7
Add support for ANSI code and RGB colors (#148)
Fixes #147.
2020-11-01 00:17:21 +01:00
Danilo Bargen
151d014f5d
Fix expected output for tar test (#144) 2020-10-13 09:45:21 +02:00
Danilo Bargen
30b7c5febc
Release v1.4.1 (#140) v1.4.1 2020-09-04 12:25:37 +02:00
Bruno A. Muciño
d2b5614f1a Replace deprecated tempdir crate with tempfile crate (#139)
Fixes #134.
2020-09-04 11:59:10 +02:00
Danilo Bargen
95fdddd68e Fix mixed indentation in zsh completion file 2020-09-04 11:35:36 +02:00
Francesco
b0153c7e4c
Fix zsh completion for --color argument (#138)
Fixes #137.
2020-09-04 11:34:07 +02:00
Danilo Bargen
5a9cde733b
Release v1.4.0 (#136) v1.4.0 2020-09-03 23:21:25 +02:00
Danilo Bargen
2a2a4cdda5 README: Add links to Fedora and NetBSD packages 2020-09-03 23:06:47 +02:00
Danilo Bargen
fd9e36277f Disable clippy::too_many_lines warning 2020-09-03 22:46:53 +02:00
Danilo Bargen
504639b6a6
Run cargo update (#133)
This includes a security fix of the bumpalo crate:

https://rustsec.org/advisories/RUSTSEC-2020-0006
2020-09-03 08:09:38 +02:00
Danilo Bargen
4f078e9511 README: Update usage section
The color option was missing.

Fixes #135
2020-08-31 17:17:19 +02:00
Danilo Bargen
4c413d7e40
Merge pull request #111 from LovecraftianHorror/better-color-detection
Improved color detection with --color argument and NO_COLOR env variable.

Fixes #81.
2020-08-31 00:31:54 +02:00
Lovecraftian Horror
dc6af5ad6c Add integration tests for the auto/never color options 2020-08-31 00:08:54 +02:00
Lovecraftian Horror
1b8062e0af Switch --color always to force styling 2020-08-31 00:08:54 +02:00
Lovecraftian Horror
bc04e1ac00 Disable styling for --color auto if the output is being piped 2020-08-31 00:08:54 +02:00
Lovecraftian Horror
be79c924f6 Disable styling for --color auto when NO_COLOR is set 2020-08-31 00:08:54 +02:00
Lovecraftian Horror
f757389df9 Add flag for specifying color preference 2020-08-31 00:08:54 +02:00
Lovecraftian Horror
baffd1ea4d Apply enable_styles config to stale cache warning
This change makes the color for the "stale cache" warning follow
`enable_styles`, like the rest of the styling.
2020-08-30 21:17:11 +02:00
Danilo Bargen
09d73c2f03
Merge pull request #119 from Atul9/add-cargo-fmt-to-github-actions
Add cargo fmt to github-actions config
2020-08-30 20:04:10 +02:00
Danilo Bargen
d9b5e49551 CI: Always run rustfmt on fixed Rust version
Otherwise a new release of rustfmt may break CI without any change to
the code.
2020-08-30 19:56:33 +02:00
Atul Bhosale
a67e7d184a CI: Add cargo fmt step 2020-08-30 19:56:15 +02:00
Danilo Bargen
e507343f5d
CI: Run clippy with Rust 1.46 (#132) 2020-08-30 19:55:38 +02:00
Danilo Bargen
5a2d054ace Update Cargo.lock
Should have been part of 590bb44.
2020-08-30 18:48:29 +02:00
Danilo Bargen
3597e344cb Apply rustfmt to codebase
Co-authored-by: Atul Bhosale <atul1bhosale@gmail.com>
Co-authored-by: Lovecraftian Horror <LovecraftianHorror@pm.me>
2020-08-30 18:39:29 +02:00
Kornel
590bb44585
Switch to maintained app_dirs2 (#124)
The app_dirs crate is no longer actively maintained. The app_dirs2 crate is a drop-in replacement.
2020-08-30 18:37:27 +02:00
Danny Mösch
e8dcde4955
Mention the environment variable TEALDEER_CONFIG_DIR in the README (#131) 2020-08-30 15:37:33 +02:00
Danilo Bargen
55079b8e77 Document requirement for libssl-dev
Closes #130
2020-08-21 21:37:35 +02:00
Niklas Mohrin
64e2c7b799
Update outdated expected output for the markdown test (#128)
Fixes #126.
2020-08-11 21:04:48 +02:00
Danilo Bargen
0b277c7515
Add test for pager warnings on Windows (#122) 2020-07-18 01:06:58 +02:00
Danilo Bargen
95e6b0520f
Upgrade assert_cmd and escargot (#123) 2020-07-18 00:24:29 +02:00
Danilo Bargen
d446e50813
Merge pull request #115 from ilai-deutel/automatic-updates
Implement automatic cache updates
2020-06-26 16:59:28 +02:00
Ilaï Deutel
509d450585 Add instructions for configuring auto updates to README 2020-05-31 17:12:57 -07:00
Ilaï Deutel
2f2fe4dd92 Fix serde default for updates.auto_update_interval_hours 2020-05-31 17:12:57 -07:00
Ilaï Deutel
a59182b6cc Use filetime instead of utime to set modification times in tests 2020-05-31 17:12:57 -07:00