mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-01 19:02:22 +01:00
Compare commits
1 Commits
master
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
053fd0a31b |
@@ -13,7 +13,7 @@ jobs:
|
|||||||
PR_NUMBER: ${{ github.event.number }}
|
PR_NUMBER: ${{ github.event.number }}
|
||||||
PR_BASE: ${{ github.base_ref }}
|
PR_BASE: ${{ github.base_ref }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v4
|
||||||
- name: Fetch PR base
|
- name: Fetch PR base
|
||||||
run: git fetch --no-tags --prune --depth=1 origin
|
run: git fetch --no-tags --prune --depth=1 origin
|
||||||
|
|
||||||
|
8
Cargo.lock
generated
8
Cargo.lock
generated
@@ -260,18 +260,18 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap"
|
name = "clap"
|
||||||
version = "4.5.24"
|
version = "4.5.46"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "9560b07a799281c7e0958b9296854d6fafd4c5f31444a7e5bb1ad6dde5ccf1bd"
|
checksum = "2c5e4fcf9c21d2e544ca1ee9d8552de13019a42aa7dbf32747fa7aaf1df76e57"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap_builder",
|
"clap_builder",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "clap_builder"
|
name = "clap_builder"
|
||||||
version = "4.5.24"
|
version = "4.5.46"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "874e0dd3eb68bf99058751ac9712f622e61e6f393a94f7128fa26e3f02f5c7cd"
|
checksum = "fecb53a0e6fcfb055f686001bc2e2592fa527efaf38dbe81a6a9563562e57d41"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstream",
|
"anstream",
|
||||||
"anstyle",
|
"anstyle",
|
||||||
|
@@ -83,7 +83,7 @@ default-features = false
|
|||||||
features = ["parsing"]
|
features = ["parsing"]
|
||||||
|
|
||||||
[dependencies.clap]
|
[dependencies.clap]
|
||||||
version = "4.4.12"
|
version = "4.5.46"
|
||||||
optional = true
|
optional = true
|
||||||
features = ["wrap_help", "cargo"]
|
features = ["wrap_help", "cargo"]
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ toml = { version = "0.9.1", features = ["preserve_order"] }
|
|||||||
walkdir = "2.5"
|
walkdir = "2.5"
|
||||||
|
|
||||||
[build-dependencies.clap]
|
[build-dependencies.clap]
|
||||||
version = "4.4.12"
|
version = "4.5.46"
|
||||||
optional = true
|
optional = true
|
||||||
features = ["wrap_help", "cargo"]
|
features = ["wrap_help", "cargo"]
|
||||||
|
|
||||||
|
10
README.md
10
README.md
@@ -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
|
Display a single file on the terminal
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bat README.md
|
> bat README.md
|
||||||
```
|
```
|
||||||
|
|
||||||
Display multiple files at once
|
Display multiple files at once
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bat src/*.rs
|
> bat src/*.rs
|
||||||
```
|
```
|
||||||
|
|
||||||
Read from stdin, determine the syntax automatically (note, highlighting will
|
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`)
|
usually through a shebang such as `#!/bin/sh`)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -s https://sh.rustup.rs | bat
|
> curl -s https://sh.rustup.rs | bat
|
||||||
```
|
```
|
||||||
|
|
||||||
Read from stdin, specify the language explicitly
|
Read from stdin, specify the language explicitly
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
yaml2json .travis.yml | json_pp | bat -l json
|
> yaml2json .travis.yml | json_pp | bat -l json
|
||||||
```
|
```
|
||||||
|
|
||||||
Show and highlight non-printable characters:
|
Show and highlight non-printable characters:
|
||||||
```bash
|
```bash
|
||||||
bat -A /etc/hosts
|
> bat -A /etc/hosts
|
||||||
```
|
```
|
||||||
|
|
||||||
Use it as a `cat` replacement:
|
Use it as a `cat` replacement:
|
||||||
|
Reference in New Issue
Block a user