mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-11-07 16:24:06 +01:00
Fixed batgrep using the pager for bat.
This commit is contained in:
parent
ade37fd4ee
commit
2633149c04
@ -1,79 +0,0 @@
|
||||
version: 2.1
|
||||
|
||||
executors:
|
||||
linux_alpine:
|
||||
docker:
|
||||
- image: alpine:latest
|
||||
|
||||
commands:
|
||||
setup:
|
||||
description: "Set up the environment needed to test and run the scripts."
|
||||
steps:
|
||||
- run:
|
||||
name: "APK: Add repository."
|
||||
command: printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||
- run:
|
||||
name: "APK: Update cache."
|
||||
command: apk update
|
||||
- run:
|
||||
name: "Setup: Install build packages."
|
||||
command: apk add bash python2
|
||||
- run:
|
||||
name: "Setup: Install runtime packages."
|
||||
command: apk add bat ripgrep
|
||||
|
||||
build:
|
||||
description: "Build the self-contained scripts."
|
||||
parameters:
|
||||
minify:
|
||||
type: string
|
||||
default: "lib"
|
||||
steps:
|
||||
- run:
|
||||
name: "Build"
|
||||
command: ./build.sh --minify=<<parameters.minify>>
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
executor: linux_alpine
|
||||
steps:
|
||||
- setup
|
||||
- checkout
|
||||
- build:
|
||||
minify: "all"
|
||||
|
||||
test-snapshots:
|
||||
executor: linux_alpine
|
||||
steps:
|
||||
- setup
|
||||
- checkout
|
||||
- build:
|
||||
minify: "all"
|
||||
- run:
|
||||
name: "Test: Snapshots"
|
||||
command: test/run.sh snapshot-test
|
||||
|
||||
test-consistency:
|
||||
executor: linux_alpine
|
||||
steps:
|
||||
- setup
|
||||
- checkout
|
||||
- build:
|
||||
minify: "all"
|
||||
- run:
|
||||
name: "Test: Consistency"
|
||||
command: test/run.sh consistency-test
|
||||
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
default:
|
||||
jobs:
|
||||
- build
|
||||
- test-snapshots:
|
||||
requires: [build]
|
||||
- test-consistency:
|
||||
requires: [build]
|
||||
|
@ -1,162 +1,79 @@
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: alpine:latest
|
||||
steps:
|
||||
- run:
|
||||
name: 'APK: Add repository.'
|
||||
command: printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/testing" >>
|
||||
/etc/apk/repositories
|
||||
- run:
|
||||
name: 'APK: Update cache.'
|
||||
command: apk update
|
||||
- run:
|
||||
name: 'Setup: Install build packages.'
|
||||
command: apk add bash python2
|
||||
- run:
|
||||
name: 'Setup: Install runtime packages.'
|
||||
command: apk add bat ripgrep
|
||||
- checkout
|
||||
- run:
|
||||
name: Build
|
||||
command: ./build.sh --minify=all
|
||||
test-snapshots:
|
||||
docker:
|
||||
- image: alpine:latest
|
||||
steps:
|
||||
- run:
|
||||
name: 'APK: Add repository.'
|
||||
command: printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/testing" >>
|
||||
/etc/apk/repositories
|
||||
- run:
|
||||
name: 'APK: Update cache.'
|
||||
command: apk update
|
||||
- run:
|
||||
name: 'Setup: Install build packages.'
|
||||
command: apk add bash python2
|
||||
- run:
|
||||
name: 'Setup: Install runtime packages.'
|
||||
command: apk add bat ripgrep
|
||||
- checkout
|
||||
- run:
|
||||
name: Build
|
||||
command: ./build.sh --minify=all
|
||||
- run:
|
||||
name: 'Test: Snapshots'
|
||||
command: test/run.sh snapshot-test
|
||||
test-consistency:
|
||||
docker:
|
||||
- image: alpine:latest
|
||||
steps:
|
||||
- run:
|
||||
name: 'APK: Add repository.'
|
||||
command: printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/testing" >>
|
||||
/etc/apk/repositories
|
||||
- run:
|
||||
name: 'APK: Update cache.'
|
||||
command: apk update
|
||||
- run:
|
||||
name: 'Setup: Install build packages.'
|
||||
command: apk add bash python2
|
||||
- run:
|
||||
name: 'Setup: Install runtime packages.'
|
||||
command: apk add bat ripgrep
|
||||
- checkout
|
||||
- run:
|
||||
name: Build
|
||||
command: ./build.sh --minify=all
|
||||
- run:
|
||||
name: 'Test: Consistency'
|
||||
command: test/run.sh consistency-test
|
||||
workflows:
|
||||
version: 2
|
||||
default:
|
||||
jobs:
|
||||
- build
|
||||
- test-snapshots:
|
||||
requires:
|
||||
- build
|
||||
- test-consistency:
|
||||
requires:
|
||||
- build
|
||||
version: 2.1
|
||||
|
||||
executors:
|
||||
linux_alpine:
|
||||
docker:
|
||||
- image: alpine:latest
|
||||
|
||||
commands:
|
||||
setup:
|
||||
description: "Set up the environment needed to test and run the scripts."
|
||||
steps:
|
||||
- run:
|
||||
name: "APK: Add repository."
|
||||
command: printf "\n%s\n" "http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||
- run:
|
||||
name: "APK: Update cache."
|
||||
command: apk update
|
||||
- run:
|
||||
name: "Setup: Install build packages."
|
||||
command: apk add bash python2
|
||||
- run:
|
||||
name: "Setup: Install runtime packages."
|
||||
command: apk add bat ripgrep
|
||||
|
||||
build:
|
||||
description: "Build the self-contained scripts."
|
||||
parameters:
|
||||
minify:
|
||||
type: string
|
||||
default: "lib"
|
||||
steps:
|
||||
- run:
|
||||
name: "Build"
|
||||
command: ./build.sh --minify=<<parameters.minify>>
|
||||
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
executor: linux_alpine
|
||||
steps:
|
||||
- setup
|
||||
- checkout
|
||||
- build:
|
||||
minify: "all"
|
||||
|
||||
test-snapshots:
|
||||
executor: linux_alpine
|
||||
steps:
|
||||
- setup
|
||||
- checkout
|
||||
- build:
|
||||
minify: "all"
|
||||
- run:
|
||||
name: "Test: Snapshots"
|
||||
command: test/run.sh snapshot-test
|
||||
|
||||
test-consistency:
|
||||
executor: linux_alpine
|
||||
steps:
|
||||
- setup
|
||||
- checkout
|
||||
- build:
|
||||
minify: "all"
|
||||
- run:
|
||||
name: "Test: Consistency"
|
||||
command: test/run.sh consistency-test
|
||||
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
default:
|
||||
jobs:
|
||||
- build
|
||||
- test-snapshots:
|
||||
requires: [build]
|
||||
- test-consistency:
|
||||
requires: [build]
|
||||
|
||||
# Original config.yml file:
|
||||
# version: 2.1
|
||||
#
|
||||
# executors:
|
||||
# linux_alpine:
|
||||
# docker:
|
||||
# - image: alpine:latest
|
||||
#
|
||||
# commands:
|
||||
# setup:
|
||||
# description: \"Set up the environment needed to test and run the scripts.\"
|
||||
# steps:
|
||||
# - run:
|
||||
# name: \"APK: Add repository.\"
|
||||
# command: printf \"\\n%s\\n\" \"http://nl.alpinelinux.org/alpine/edge/testing\" >> /etc/apk/repositories
|
||||
# - run:
|
||||
# name: \"APK: Update cache.\"
|
||||
# command: apk update
|
||||
# - run:
|
||||
# name: \"Setup: Install build packages.\"
|
||||
# command: apk add bash python2
|
||||
# - run:
|
||||
# name: \"Setup: Install runtime packages.\"
|
||||
# command: apk add bat ripgrep
|
||||
#
|
||||
# build:
|
||||
# description: \"Build the self-contained scripts.\"
|
||||
# parameters:
|
||||
# minify:
|
||||
# type: string
|
||||
# default: \"lib\"
|
||||
# steps:
|
||||
# - run:
|
||||
# name: \"Build\"
|
||||
# command: ./build.sh --minify=<<parameters.minify>>
|
||||
#
|
||||
#
|
||||
# jobs:
|
||||
#
|
||||
# build:
|
||||
# executor: linux_alpine
|
||||
# steps:
|
||||
# - setup
|
||||
# - checkout
|
||||
# - build:
|
||||
# minify: \"all\"
|
||||
#
|
||||
# test-snapshots:
|
||||
# executor: linux_alpine
|
||||
# steps:
|
||||
# - setup
|
||||
# - checkout
|
||||
# - build:
|
||||
# minify: \"all\"
|
||||
# - run:
|
||||
# name: \"Test: Snapshots\"
|
||||
# command: test/run.sh snapshot-test
|
||||
#
|
||||
# test-consistency:
|
||||
# executor: linux_alpine
|
||||
# steps:
|
||||
# - setup
|
||||
# - checkout
|
||||
# - build:
|
||||
# minify: \"all\"
|
||||
# - run:
|
||||
# name: \"Test: Consistency\"
|
||||
# command: test/run.sh consistency-test
|
||||
#
|
||||
#
|
||||
# workflows:
|
||||
# version: 2
|
||||
# default:
|
||||
# jobs:
|
||||
# - build
|
||||
# - test-snapshots:
|
||||
# requires: [build]
|
||||
# - test-consistency:
|
||||
# requires: [build]
|
@ -102,6 +102,7 @@ do_print() {
|
||||
"${LAST_LR[@]}" \
|
||||
"${LAST_LH[@]}" \
|
||||
--style="header,numbers" \
|
||||
--paging=never \
|
||||
"$LAST_FILE"
|
||||
|
||||
# Print the separator.
|
||||
|
Loading…
Reference in New Issue
Block a user