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

Compare commits

..

1 Commits

Author SHA1 Message Date
dependabot[bot]
e927bd6b7b build(deps): bump globset from 0.4.15 to 0.4.16
Bumps [globset](https://github.com/BurntSushi/ripgrep) from 0.4.15 to 0.4.16.
- [Release notes](https://github.com/BurntSushi/ripgrep/releases)
- [Changelog](https://github.com/BurntSushi/ripgrep/blob/master/CHANGELOG.md)
- [Commits](https://github.com/BurntSushi/ripgrep/compare/ignore-0.4.15...globset-0.4.16)

---
updated-dependencies:
- dependency-name: globset
  dependency-version: 0.4.16
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 04:48:53 +00:00
3 changed files with 8 additions and 8 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

4
Cargo.lock generated
View File

@@ -657,9 +657,9 @@ checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2"
[[package]]
name = "globset"
version = "0.4.15"
version = "0.4.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "15f1ce686646e7f1e19bf7d5533fe443a45dbfb990e00629110797578b42fb19"
checksum = "54a1028dfc5f5df5da8a56a73e6c153c9a9708ec57232470703592a3f18e49f5"
dependencies = [
"aho-corasick",
"bstr",

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: