Commit graph

576 commits

Author SHA1 Message Date
Erick Guan
3d8d488f66
Replace reqwest with ureq (#417)
ureq is a blocking HTTP client. ureq is simpler than reqwest. This
brings:
- smaller binary size
- cleaner configuration interfaces
2025-03-09 22:06:47 +01:00
Nachiket Kanore
c6de583c46
Only create a single temporary directory in integration tests (#411) 2025-03-02 12:03:09 +01:00
Niklas Mohrin
009af7063f
Move most of main to try_main (#400)
Currently, `main` uses `print_error` and `process::exit` in several
places. These could be unified by propagating errors via `Result`s.
There is one place left that manually calls `print_error`, because the
error should be followed by help instructions printed without any
highlighting.
2025-02-26 23:04:41 +01:00
lyj
55f401df30
Add args: --edit-page and --edit-patch (#388)
Fix https://github.com/tealdeer-rs/tealdeer/issues/383

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>
2025-02-26 22:03:18 +01:00
Erick Guan
09ef7f534e
Allow configuring TLS backend (#386) 2025-02-26 00:27:44 +01:00
Predrag Minic
120e2a92c2
Add configuration option for archive_source (#337)
This allows for specifying a custom archive URL as an alternative approach to Custom Pages.

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>
2025-01-12 12:24:02 +01:00
Christoph Loy
09d44110f8
Add tests for osx/macos alias (#407)
Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>
2025-01-12 12:04:22 +01:00
Christoph Loy
b9f116d629
Add common platform to CLI (#401) 2025-01-12 11:50:32 +01:00
Matěj Kafka
00c7778125
Resolve paths in config [directories] relative to the config directory (#395) 2025-01-05 00:17:44 +01:00
Niklas Mohrin
826630737c
Merge pull request #399 from niklasmohrin/tests
Various test improvements
2025-01-03 00:36:56 +01:00
Niklas Mohrin
dbab55a2b4
Use only one test thread
Otherwise the builds made by `TestEnv::command` will conflict with each
other. This manifested itself on Windows with

> linking with `link.exe` failed: exit code: 1104
> LINK : fatal error LNK1104: cannot open file '...'
2025-01-02 23:55:36 +01:00
Niklas Mohrin
e7b434d06a
Prefer config file over TEALDEER_CACHE_DIR in integration tests 2025-01-02 23:55:36 +01:00
Niklas Mohrin
fc19206029
Add ignore-online-tests feature
Since these tests require internet access, they are undesirable in
reproducible builds [1] (and in general, I guess). The overall goal is
to shrink this list to a minimum. At some point we might remove the
feature again and ignore online tests by default. Before putting much
thought into refactoring the remaining tests, we should wait until we
have introduced the `updates.archive_url` option. Then, we could run a
local webserver that serves a known file. Until then, having the feature
already helps discourage using `--update` in tests that don't need it
and allows for quicker test execution locally if wanted.

- [1]: edf04b75c1/pkgs/by-name/te/tealdeer/package.nix (L34-L44)
2025-01-02 23:55:36 +01:00
Niklas Mohrin
e85de336ed
Structure test fixtures like page cache 2025-01-02 23:55:35 +01:00
Niklas Mohrin
909bad9c65
Fix feature selection in integration tests 2025-01-02 23:55:35 +01:00
Niklas Mohrin
ceee231891
Merge pull request #398 from niklasmohrin/dependencies
Update dependencies to hush dependabot
2025-01-01 19:33:59 +01:00
Niklas Mohrin
0c55a4b82a
Run cargo update --recursive -p rustls 2025-01-01 19:22:25 +01:00
Niklas Mohrin
e3a06eefe3
Run cargo update -p hashbrown 2025-01-01 19:21:36 +01:00
Niklas Mohrin
6869837e79
Run cargo update -p url to bump idna 2025-01-01 19:21:04 +01:00
Niklas Mohrin
ee5418b5a8
Run cargo clippy --fix (Rust 1.83) (#397) 2025-01-01 19:07:40 +01:00
Niklas Mohrin
1d9153e37e
Release v1.7.1 v1.7.1 2024-11-14 22:11:34 +01:00
Niklas Mohrin
d719f21f7b
Bump futures-util (0.3.30 is yanked) 2024-11-14 21:59:23 +01:00
Blair Noctis
fb7492b0b5
Upgrade yansi: 0.5.1 -> 1.0.1 (#389)
- Adapt to `thing.paint(style)` API; was `style.paint(thing)`
- Remove `yansi::Paint::enable_windows_ascii()` in style usage decision;
  removed in yansi commit b186eb5bfb, which introduced "automatic"
  support for Windows: "If support is not available, styling is disabled
  and no styling sequences are emitted", fitting the `Auto` option
- Respect `--color=always` even if we know it won't work

---------

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>
2024-11-14 16:07:30 +01:00
Danilo Bargen
d44613cf59 Release v1.7.0 v1.7.0 2024-10-02 23:02:32 +02:00
Danilo Bargen
713f6f913c
Run cargo update (#381) 2024-10-02 22:44:22 +02:00
Niklas Mohrin
ec2daa495c
Replace atty with std::io::IsTerminal (#380) 2024-10-02 20:32:17 +00:00
Danilo Bargen
fc6d644152
Update all URLs to point to new GitHub organization (#379)
See https://github.com/tealdeer-rs/tealdeer/issues/376 for details.
2024-09-30 11:27:19 +02:00
Danilo Bargen
8995f9f07e
Merge pull request #374 from dbrgn/updates-20240812
Update Dependencies
2024-08-13 00:15:16 +02:00
Danilo Bargen
7c245040b9
Command line help: Add hint about platform overrides (#375)
- Rename PLATFORMS to PLATFORM
- Add hint about specifying platform multiple times
2024-08-13 00:14:19 +02:00
Danilo Bargen
4f51ba090f Upgrade zip: 0.6.6 → 2.1.6 2024-08-12 23:09:55 +02:00
Danilo Bargen
60855cedcf Upgrade toml: 0.5.11 → 0.8.19 2024-08-12 23:02:28 +02:00
Danilo Bargen
9096d536b1 Upgrade reqwest: 0.11.27 → 0.12.5 2024-08-12 23:02:22 +02:00
Danilo Bargen
13a3d58c8b Upgrade predicates: 2.1.5 → 3.1.2 2024-08-12 22:57:32 +02:00
Danilo Bargen
13f2c4c714 Upgrade env_logger: 0.10 → 0.11 2024-08-12 22:54:58 +02:00
Danilo Bargen
65495da5a5 Run cargo update 2024-08-12 22:54:03 +02:00
Danilo Bargen
f3d74850a8
Make clippy happy (#373) 2024-08-06 21:46:40 +00:00
Danilo Bargen
290afe385d
Merge pull request #368 from dbrgn/365-apple-silicon-builds
CI: Create release builds for Apple silicon (ARM)
2024-06-17 01:28:56 +02:00
Danilo Bargen
7620a67306 CI: Set name for every workflow 2024-06-17 01:07:29 +02:00
Danilo Bargen
706c1408a7 CI: Don't publish docs for 0.x test releases 2024-06-17 01:02:26 +02:00
Danilo Bargen
64f90a625e CI: Create release builds for Apple silicon (ARM) 2024-06-17 00:59:42 +02:00
Danilo Bargen
83b2bdaf33
Merge pull request #298 from dbrgn/clap-v4
Migrate to Clap v4, bump MSRV to 1.75
2024-06-17 00:44:53 +02:00
Danilo Bargen
64f3fbbbc6 Apply clippy suggestions 2024-06-17 00:35:04 +02:00
Danilo Bargen
86293c8723 Bump MSRV to 1.75 2024-06-17 00:35:04 +02:00
Danilo Bargen
de1684edb6 Update to clap v4 2024-06-17 00:35:04 +02:00
Adam Henley
3a14232105
Generate docs only upon release (#362)
Signed-off-by: Adam Henley <adamazing@gmail.com>
2024-06-06 17:17:20 +02:00
dependabot[bot]
9957dcea74
Bump peaceiris/actions-mdbook from 1 to 2 (#360)
Bumps [peaceiris/actions-mdbook](https://github.com/peaceiris/actions-mdbook) from 1 to 2.
- [Release notes](https://github.com/peaceiris/actions-mdbook/releases)
- [Changelog](https://github.com/peaceiris/actions-mdbook/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-mdbook/compare/v1...v2)

---
updated-dependencies:
- dependency-name: peaceiris/actions-mdbook
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-10 18:51:53 +02:00
dependabot[bot]
7633e46541
Bump peaceiris/actions-gh-pages from 3 to 4 (#359)
Bumps [peaceiris/actions-gh-pages](https://github.com/peaceiris/actions-gh-pages) from 3 to 4.
- [Release notes](https://github.com/peaceiris/actions-gh-pages/releases)
- [Changelog](https://github.com/peaceiris/actions-gh-pages/blob/main/CHANGELOG.md)
- [Commits](https://github.com/peaceiris/actions-gh-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: peaceiris/actions-gh-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-10 18:50:44 +02:00
K.B.Dharun Krishna
ee6d2418f1
Add BSD platform support and update workflows (#354) 2024-04-10 16:05:51 +02:00
Linus Walker
c8f2408373
Performance optimization with cargo flags (#355) 2024-03-03 18:35:09 +01:00
Zacchary Dempsey-Plante
17c08f0261
Change custom page files to use a .md extension (#322)
* Change custom page files to use a `.md` extension.
* Add a breaking change warning to the documentation for the usage of custom pages.
* Add a temporary check for old custom pages to assist in the migration to the new naming convention.

Co-authored-by: Danilo Bargen <mail@dbrgn.ch>
2024-02-15 19:27:56 +00:00