Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Merge 41870e7 into 263293f
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Sep 11, 2021
2 parents 263293f + 41870e7 commit fc0a873
Show file tree
Hide file tree
Showing 23 changed files with 439 additions and 690 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/build.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/coverage.yaml
@@ -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
21 changes: 21 additions & 0 deletions .github/workflows/regression.yaml
@@ -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
44 changes: 27 additions & 17 deletions .gitignore
@@ -1,25 +1,22 @@
uniq2
### https://raw.github.com/github/gitignore/991e760c1c6d50fdda246e0178b9c58b06770b90/Rust.gitignore

### https://raw.github.com/github/gitignore/599646e9d0a26283d67715dead8f26e0eb2df753/Go.gitignore
# Generated by Cargo
# will have compiled files and executables
debug/
target/

# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
Cargo.lock

# Test binary, built with `go test -c`
*.test
# These are backup files generated by rustfmt
**/*.rs.bk

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Dependency directories (remove the comment below to include it)
# vendor/


### https://raw.github.com/github/gitignore/599646e9d0a26283d67715dead8f26e0eb2df753/Global/Emacs.gitignore
### https://raw.github.com/github/gitignore/991e760c1c6d50fdda246e0178b9c58b06770b90/Global/Emacs.gitignore

# -*- mode: gitignore; -*-
*~
Expand Down Expand Up @@ -72,7 +69,7 @@ flycheck_*.el



### https://raw.github.com/github/gitignore/599646e9d0a26283d67715dead8f26e0eb2df753/Global/macOS.gitignore
### https://raw.github.com/github/gitignore/991e760c1c6d50fdda246e0178b9c58b06770b90/Global/macOS.gitignore

# General
.DS_Store
Expand Down Expand Up @@ -102,3 +99,16 @@ Temporary Items
.apdisk


### https://raw.github.com/github/gitignore/991e760c1c6d50fdda246e0178b9c58b06770b90/Global/VisualStudioCode.gitignore

.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/


Expand Down
15 changes: 15 additions & 0 deletions Cargo.toml
@@ -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"
43 changes: 0 additions & 43 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -41,7 +41,7 @@ uniq2 [OPTIONS] [INPUT [OUTPUT]]
OPTIONS
-a, --adjacent delete only adjacent duplicated lines.
-d, --delete-lines only prints deleted lines.
-i, --ignore-case case sensitive.
-i, --ignore-case case insensitive.
-h, --help print this message.

INPUT gives file name of input. If argument is single dash ('-')
Expand Down
32 changes: 0 additions & 32 deletions adjacent_uniq.go

This file was deleted.

18 changes: 18 additions & 0 deletions build.rs
@@ -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);
}
81 changes: 0 additions & 81 deletions cmd/uniq2/main.go

This file was deleted.

26 changes: 0 additions & 26 deletions cmd/uniq2/main_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion docs/content/_index.md
Expand Up @@ -7,7 +7,7 @@ title: uniq2
[![codebeat badge](https://codebeat.co/badges/855266ea-99d4-4d80-ac43-81a1712f0f90)](https://codebeat.co/projects/github-com-tamada-uniq2-master)
[![Go Report Card](https://goreportcard.com/badge/github.com/tamada/uniq2)](https://goreportcard.com/report/github.com/tamada/uniq2)
[![License](https://img.shields.io/badge/License-WTFPL-blue.svg)](https://github.com/tamada/uniq2/blob/master/LICENSE)
[![Version](https://img.shields.io/badge/Version-1.1.1-yellowgreen.svg)](https://github.com/tamada/uniq2/releases/tag/v1.1.1)
[![Version](https://img.shields.io/badge/Version-1.0.1-yellowgreen.svg)](https://github.com/tamada/uniq2/releases/tag/v1.0.1)

## Description

Expand Down
5 changes: 0 additions & 5 deletions go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions go.sum

This file was deleted.

0 comments on commit fc0a873

Please sign in to comment.