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

Commit

Permalink
ready to ship v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tamada committed Mar 11, 2020
1 parent 2131211 commit 27b2fa8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,7 +1,7 @@
FROM alpine:3.10.1
ARG version="1.1.0"
ARG version="1.1.1"
LABEL maintainer="Haruai Tamada" \
uniq2-version="1.0.2" \
uniq2-version=${version} \
description="Deleting duplicate lines"

RUN adduser -D uniq2 \
Expand Down
2 changes: 1 addition & 1 deletion Makefile
@@ -1,6 +1,6 @@
GO=go
NAME := uniq2
VERSION := 1.1.0
VERSION := 1.1.1
DIST := $(NAME)-$(VERSION)

all: test build
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -3,7 +3,7 @@
[![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.0-yellowgreen.svg)](https://github.com/tamada/uniq2/releases/tag/v1.1.0)
[![Version](https://img.shields.io/badge/Version-1.1.1-yellowgreen.svg)](https://github.com/tamada/uniq2/releases/tag/v1.1.1)

# uniq2

Expand Down Expand Up @@ -52,7 +52,7 @@ OUTPUT represents the destination.
## :whale: Docker
```sh
docker run --rm -v $PWD:/home/uniq2 tamada/uniq2:1.0.3 [OPTIONS] [ARGUMENTS...]
docker run --rm -v $PWD:/home/uniq2 tamada/uniq2:latest [OPTIONS] [ARGUMENTS...]
```
The meaning of the options of above command are as follows.
Expand Down
7 changes: 4 additions & 3 deletions cmd/uniq2/main.go
Expand Up @@ -11,10 +11,11 @@ import (
/*
VERSION shows version of uniq2.
*/
const VERSION = "1.1.0"
const VERSION = "1.1.1"

func helpMessage(appName string) string {
return fmt.Sprintf(`%s [OPTIONS] [INPUT [OUTPUT]]
return fmt.Sprintf(`%s version %s
%s [OPTIONS] [INPUT [OUTPUT]]
OPTIONS
-a, --adjacent delete only adjacent duplicated lines.
-d, --delete-lines only prints deleted lines.
Expand All @@ -23,7 +24,7 @@ OPTIONS
INPUT gives file name of input. If argument is single dash ('-')
or absent, the program read strings from stdin.
OUTPUT represents the destination.`, appName)
OUTPUT represents the destination.`, appName, VERSION, appName)
}

func printError(err error, statusCode int) int {
Expand Down
1 change: 1 addition & 0 deletions cmd/uniq2/main_test.go
Expand Up @@ -12,6 +12,7 @@ func Example_uniq2() {
func Example_printHelp() {
goMain([]string{"uniq2", "--help"})
// Output:
// uniq2 version 1.1.1
// uniq2 [OPTIONS] [INPUT [OUTPUT]]
// OPTIONS
// -a, --adjacent delete only adjacent duplicated lines.
Expand Down
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.0-yellowgreen.svg)](https://github.com/tamada/uniq2/releases/tag/v1.1.0)
[![Version](https://img.shields.io/badge/Version-1.1.1-yellowgreen.svg)](https://github.com/tamada/uniq2/releases/tag/v1.1.1)

## Description

Expand Down

0 comments on commit 27b2fa8

Please sign in to comment.