fix(nushell)

API change
This commit is contained in:
Jacob Heider 2023-01-31 17:42:43 -05:00 committed by Jacob Heider
parent b52cfd60f2
commit 4e409556f8

View file

@ -19,12 +19,19 @@ build:
cargo test
test:
dependencies:
crates.io/semverator: '*'
script: |
dd if=/dev/zero count=1 bs=101 of=big
dd if=/dev/zero count=1 bs=99 of=little
OUT=$(nu -c 'ls | where size < 100b')
test "$OUT" = "$FIXTURE"
if semverator lt {{version}} 0.75.0; then
nu -c 'fetch https://tea.xyz'
else
nu -c 'http get https://tea.xyz'
fi
env:
FIXTURE: |
╭───┬────────┬──────┬──────┬──────────╮