This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
410 additions
and
690 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Coverage | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: xd009642/tarpaulin:develop-nightly | ||
options: --security-opt seccomp=unconfined | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Run tests | ||
run: cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Lcov | ||
# - name: show current status | ||
# run: | | ||
# ls -F | ||
- name: Upload coverage | ||
uses: coverallsapp/github-action@v1.0.1 | ||
with: | ||
github-token: ${{ secrets.github_token }} | ||
path-to-lcov: lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Regression | ||
|
||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
rust: [stable] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Setup Rust | ||
uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: ${{ matrix.rust }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Run rust | ||
run: cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "uniq2" | ||
version = "2.0.0" | ||
authors = ["Haruaki TAMADA"] | ||
description = "Delete duplicated lines" | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
clap = "3.0.0-beta.4" | ||
|
||
[build-dependencies] | ||
clap = "3.0.0-beta.4" | ||
clap_generate = "3.0.0-beta.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// in build.rs | ||
use clap::IntoApp; | ||
use clap_generate::{generate_to, generators::*}; | ||
|
||
include!("src/cli.rs"); | ||
|
||
fn main() { | ||
let mut app = Opts::into_app(); | ||
app.set_bin_name("uniq2"); | ||
|
||
let outdir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("completions"); | ||
println!("outdir: {}", &outdir.display()); | ||
let _ = generate_to::<Bash, _, _>(&mut app, "uniq2", &outdir); | ||
let _ = generate_to::<Fish, _, _>(&mut app, "uniq2", &outdir); | ||
let _ = generate_to::<Zsh, _, _>(&mut app, "uniq2", &outdir); | ||
let _ = generate_to::<PowerShell, _, _>(&mut app, "uniq2", &outdir); | ||
let _ = generate_to::<Elvish, _, _>(&mut app, "uniq2", &outdir); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.