release/0.2.1 #10

Merged
kemitix merged 3 commits from release/0.2.1 into main 2024-02-28 17:48:26 +00:00
4 changed files with 20 additions and 6 deletions

View file

@ -35,7 +35,8 @@ steps:
commands: commands:
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz - wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz - tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
- cp cargo-binstall /usr/local/cargo/bin - rm cargo-binstall-x86_64-unknown-linux-musl.tgz
- mv cargo-binstall /usr/local/cargo/bin
- cargo binstall -y cargo-machete - cargo binstall -y cargo-machete
- cargo machete - cargo machete
@ -85,12 +86,13 @@ steps:
image: *rust_image image: *rust_image
commands: commands:
- ./test.sh - ./test.sh
when: *slow_check_paths
publish_to_crates_io: publish_to_crates_io:
image: *rust_image image: *rust_image
commands: commands:
- cargo login "$CARGO_REGISTRY_TOKEN" - cargo login "$CARGO_REGISTRY_TOKEN"
- cargo publish --registry crates-io --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes - cargo publish --registry crates-io --no-verify
secrets: [cargo_api_token] secrets: [cargo_registry_token]
when: when:
event: tag event: tag

2
Cargo.lock generated
View file

@ -122,7 +122,7 @@ dependencies = [
[[package]] [[package]]
name = "skip" name = "skip"
version = "0.2.0" version = "0.2.1"
dependencies = [ dependencies = [
"clap", "clap",
] ]

View file

@ -1,7 +1,15 @@
[package] [package]
name = "skip" name = "skip"
version = "0.2.0" version = "0.2.1"
edition = "2021" edition = "2021"
authors = ["Paul Campbell <pcampbell@kemitix.net>"]
categories = ["command-line-utilities"]
description = "Skip lines in a file"
license = "MIT"
repository = "https://git.kemitix.net/kemitix/skip"
keywords = ["skip", "lines", "file", "text", "utility"]
rust-version = "1.74.1"
exclude = [".cargo_home"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -2,13 +2,17 @@
Skip part of a file. Skip part of a file.
As `head` will show the top of a file after a number of line, As `head` will show the top of a file up-to a number of line,
so `skip` will do the opposite, and not show the top of the file, so `skip` will do the opposite, and not show the top of the file,
but will show the rest. but will show the rest.
Additionally, it can check for whole lines matching, Additionally, it can check for whole lines matching,
or for a token being present on the line. or for a token being present on the line.
N.B.: The `skip` crate used to be an implementation of [Skip list](https://en.wikipedia.org/wiki/Skip_list),
by [Luo Jia / Zhouqi Jiang](https://github.com/luojia65) ([source](https://github.com/luojia65/skip)).
That crate will be republished as [skip-list](https://crates.io/crates/skip-list) (soon).
## Usage ## Usage
### Skip a fixed number of lines ### Skip a fixed number of lines