Martin Nordholts
fc9546854f
Bump version to v0.24.0
...
We need to bump 0.x.0 because the library API changed in incompatible
ways:
$ cargo public-api diff
Resolved `diff` to `diff 0.23.0`
Removed items from the public API
=================================
(none)
Changed items in the public API
===============================
-pub fn bat::controller::Controller<'b>::run(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>) -> bat::error::Result<bool>
+pub fn bat::controller::Controller<'b>::run(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>, output_buffer: core::option::Option<&mut dyn core::fmt::Write>) -> bat::error::Result<bool>
-pub fn bat::controller::Controller<'b>::run_with_error_handler(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>, handle_error: impl core::ops::function::Fn(&bat::error::Error, &mut dyn std::io::Write)) -> bat::error::Result<bool>
+pub fn bat::controller::Controller<'b>::run_with_error_handler(&self, inputs: alloc::vec::Vec<bat::input::Input<'_>>, output_buffer: core::option::Option<&mut dyn core::fmt::Write>, handle_error: impl core::ops::function::Fn(&bat::error::Error, &mut dyn std::io::Write)) -> bat::error::Result<bool>
Added items to the public API
=============================
[...]
2023-10-11 19:14:12 +02:00
Martin Nordholts
32da58e723
Update CHANGELOG.md for v0.24.0
2023-10-10 16:50:20 +02:00
Mészáros Máté Róbert
63aaa03013
Update the ssh-config submodule ( #2697 )
...
* Update the ssh-config submodule
Pull in the fix for the syntax.
Fixes #2359
* Extend the ssh_config syntax test
2023-10-10 06:16:41 +02:00
David Peter
fbe9b6f15f
New warp text/subtext
2023-10-06 09:14:08 +02:00
David Peter
c946ddb012
Replace warp logo
2023-10-06 09:11:06 +02:00
rhysd
e5c81ed41e
Replace our own macros to write buffers with standard macros
2023-10-05 09:21:26 +02:00
skoriop
0937d575fd
fix: rewrite overflow test using usize::MAX
2023-10-05 09:20:09 +02:00
skoriop
4382be5e7c
docs: update CHANGELOG.md
2023-10-05 09:20:09 +02:00
skoriop
d89df18de2
test: add test for overflow in LineRange::from
2023-10-05 09:20:09 +02:00
skoriop
9fcc57e496
fix: integer overflow in LineRange::parse_range
2023-10-05 09:20:09 +02:00
Raghav-Bell
8e35a56712
Updated version of serde_yaml
to 0.9
2023-10-04 12:42:01 +02:00
Linda_pp
9f795dd947
Associate *.sarif
files with json
syntax ( #2695 )
...
* Associate `*.sarif` files with `json` syntax
* Update changelog for #2695
2023-10-04 09:34:40 +02:00
dependabot[bot]
721f956c1c
Bump once_cell from 1.17.0 to 1.18.0
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.17.0 to 1.18.0.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.0...v1.18.0 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 09:29:33 +02:00
dependabot[bot]
db4cdc1cb8
Bump clap from 4.4.2 to 4.4.6
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.2 to 4.4.6.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.4.2...v4.4.6 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 09:29:26 +02:00
dependabot[bot]
e455f93a1e
Bump encoding_rs from 0.8.32 to 0.8.33
...
Bumps [encoding_rs](https://github.com/hsivonen/encoding_rs ) from 0.8.32 to 0.8.33.
- [Commits](https://github.com/hsivonen/encoding_rs/compare/v0.8.32...v0.8.33 )
---
updated-dependencies:
- dependency-name: encoding_rs
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 09:29:16 +02:00
rhysd
d756d6f1ed
Fix syntax tests failure on macOS during the daytime
2023-10-04 09:28:34 +02:00
rhysd
6568fb775d
Explain how to convert .tmLanguage.json
and .tmLanguage.yml
files in doc/assets.md
2023-10-04 09:09:54 +02:00
rhysd
d376a4b631
Add support for WGSL
2023-10-04 09:09:54 +02:00
dependabot[bot]
6e5fd36882
Bump flate2 from 1.0.26 to 1.0.27
...
Bumps [flate2](https://github.com/rust-lang/flate2-rs ) from 1.0.26 to 1.0.27.
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.0.26...1.0.27 )
---
updated-dependencies:
- dependency-name: flate2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 09:04:23 +02:00
dependabot[bot]
c7cc4b5c59
Bump bytesize from 1.2.0 to 1.3.0
...
Bumps [bytesize](https://github.com/hyunsik/bytesize ) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/hyunsik/bytesize/releases )
- [Commits](https://github.com/hyunsik/bytesize/compare/v1.2.0...v1.3.0 )
---
updated-dependencies:
- dependency-name: bytesize
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 09:04:09 +02:00
dependabot[bot]
db76091a53
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 08:59:52 +02:00
David Peter
506fe65474
Add Warp as a sponsor
2023-10-03 20:04:26 +02:00
Connor Sullivan
69c326fd41
Prefer shorter winget install
2023-09-30 00:14:59 +02:00
Connor Sullivan
466b275e87
[docs] Remove duplicate winget
...
Removes duplicate winget instructions for Windows install.
2023-09-30 00:14:59 +02:00
Dan Gohman
319c675f3e
Fix a double-close
in the no_args_doesnt_break
test.
...
Fix the `no_args_doesnt_break` test to avoid calling `from_raw_fd` twice
on the same raw file descriptor, as that cause the file descriptor to be
closed twice, which means it could accidentally close some unrelated newly
created file descriptor.
2023-09-29 18:27:27 +02:00
Nicolas AMBRY
5a240f36b9
Case insensitive --map-syntax
( #2650 )
...
Co-authored-by: Nicolas AMBRY <nicolas.ambry@atos.net>
2023-09-14 16:04:43 +02:00
J-Kappes
e2bf85e749
Make -pp override --paging and vice versa when passed as a later argument. ( #2660 )
2023-09-14 05:45:46 +02:00
Anomalocaridid
fe73010a5e
ignore failing test
2023-09-08 06:25:20 +02:00
Anomalocaridid
150c04acb6
update CHANGELOG.md
2023-09-08 06:25:20 +02:00
Anomalocaridid
433176ab54
require LESSOPEN to have exactly one %s
2023-09-08 06:25:20 +02:00
Anomalocaridid
b56021ffa9
make LESSOPEN support opt-in
2023-09-08 06:25:20 +02:00
Anomalocaridid
ac2953c070
pass --no-lessopen to less by default
2023-09-08 06:25:20 +02:00
Boy van Duuren
d6e11b59e7
#2592 : Fixes unit tests dependent on echo on windows ( #2602 )
...
Co-authored-by: Boy van Duuren <boy.van.duuren@rabobank.nl>
2023-09-08 06:18:25 +02:00
Martin Nordholts
f49278cfaa
Do not enable lessopen
feature by default
2023-09-05 16:37:14 +02:00
pseudometa
9b73eda957
docs: add global --help
alias limitations
2023-09-02 14:54:55 +02:00
pseudometa
ed99a3a104
docs: Add better snippet for colorizing help pages
2023-09-02 14:54:55 +02:00
Anomalocaridid
e32ad0b048
Add $LESSOPEN
and $LESSCLOSE
support ( #2444 )
2023-09-02 08:48:26 +02:00
David Peter
3abc0c0fc4
Merge pull request #2548 from utkarshgupta137/master
...
Replace `dirs` crate with `etcetera` crate
2023-09-01 21:41:24 +02:00
David Peter
b06f13f0c5
Merge pull request #2618 from Piturnah/feat/write-to-buffer
...
feat: Optionally write to a buffer instead of stdout
2023-09-01 21:18:04 +02:00
Utkarsh Gupta
a721cc31f3
Replace dirs
crate with etcetera
crate
2023-09-01 21:13:21 +02:00
David Peter
1e52785d35
Merge pull request #2626 from rhysd/encoding_rs
...
Replace unmaintained `encoding` dependency with `encoding_rs`
2023-09-01 21:12:07 +02:00
Orion Yeung
9ba3b6ed13
No duplicate keys test, fixes #2643 ( #2647 )
...
* moved unit tests to conditional compile
made module `tests` and conditionally compiled
* added test to check for duplicate keys in builtin
checks all pairs in GlobMatcher::mappings via `GlobMatcher::glob`s `Eq`
panics at first match
```rs
SyntaxMapping {
mappings: Vec<(
GlobMatcher {
glob: Glob, ...,
}, ...,
}, ...,
}
```
* output more info with test failure
* dont duplicatively add git config path
* use guard in match for adding builtin git config syntax mapping
---------
Co-authored-by: Orion Yeung <11580988+orionyeung001@users.noreply.github.com>
2023-09-01 21:11:41 +02:00
Peter Hebden
72e1a40bab
Remove leftover unwrap
2023-09-01 20:52:55 +02:00
Peter Hebden
33a89410d4
Add example to show new feature
2023-09-01 20:52:55 +02:00
Peter Hebden
b2c28cdddb
Clippy lints
2023-09-01 20:52:55 +02:00
Peter Hebden
906e774372
Handle todos
2023-09-01 20:52:55 +02:00
Peter Hebden
d929becefc
Fix signatures
2023-09-01 20:52:55 +02:00
Peter Hebden
103a2f0d9b
Add OutputHandle
enum to use instead of &mut dyn io::Write
2023-09-01 20:52:55 +02:00
rhysd
d33b2e158e
Replace unmaintained encoding
with encoding_rs
2023-09-01 20:41:55 +02:00
David Peter
d295b3a394
Merge pull request #2613 from sharkdp/dependabot/cargo/expect-test-1.4.1
...
Bump expect-test from 1.4.0 to 1.4.1
2023-09-01 20:09:30 +02:00