1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-01 19:02:22 +01:00

Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
053fd0a31b build(deps): bump clap from 4.5.24 to 4.5.46
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.24 to 4.5.46.
- [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.5.24...clap_complete-v4.5.46)

---
updated-dependencies:
- dependency-name: clap
  dependency-version: 4.5.46
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 04:51:21 +00:00
4 changed files with 12 additions and 12 deletions

View File

@@ -13,7 +13,7 @@ jobs:
PR_NUMBER: ${{ github.event.number }}
PR_BASE: ${{ github.base_ref }}
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v4
- name: Fetch PR base
run: git fetch --no-tags --prune --depth=1 origin

8
Cargo.lock generated
View File

@@ -260,18 +260,18 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "clap"
version = "4.5.24"
version = "4.5.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9560b07a799281c7e0958b9296854d6fafd4c5f31444a7e5bb1ad6dde5ccf1bd"
checksum = "2c5e4fcf9c21d2e544ca1ee9d8552de13019a42aa7dbf32747fa7aaf1df76e57"
dependencies = [
"clap_builder",
]
[[package]]
name = "clap_builder"
version = "4.5.24"
version = "4.5.46"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "874e0dd3eb68bf99058751ac9712f622e61e6f393a94f7128fa26e3f02f5c7cd"
checksum = "fecb53a0e6fcfb055f686001bc2e2592fa527efaf38dbe81a6a9563562e57d41"
dependencies = [
"anstream",
"anstyle",

View File

@@ -83,7 +83,7 @@ default-features = false
features = ["parsing"]
[dependencies.clap]
version = "4.4.12"
version = "4.5.46"
optional = true
features = ["wrap_help", "cargo"]
@@ -120,7 +120,7 @@ toml = { version = "0.9.1", features = ["preserve_order"] }
walkdir = "2.5"
[build-dependencies.clap]
version = "4.4.12"
version = "4.5.46"
optional = true
features = ["wrap_help", "cargo"]

View File

@@ -76,13 +76,13 @@ Whenever `bat` detects a non-interactive terminal (i.e. when you pipe into anoth
Display a single file on the terminal
```bash
bat README.md
> bat README.md
```
Display multiple files at once
```bash
bat src/*.rs
> bat src/*.rs
```
Read from stdin, determine the syntax automatically (note, highlighting will
@@ -90,18 +90,18 @@ only work if the syntax can be determined from the first line of the file,
usually through a shebang such as `#!/bin/sh`)
```bash
curl -s https://sh.rustup.rs | bat
> curl -s https://sh.rustup.rs | bat
```
Read from stdin, specify the language explicitly
```bash
yaml2json .travis.yml | json_pp | bat -l json
> yaml2json .travis.yml | json_pp | bat -l json
```
Show and highlight non-printable characters:
```bash
bat -A /etc/hosts
> bat -A /etc/hosts
```
Use it as a `cat` replacement: