Skip to content

Commit 2f7e0e1

Browse files
committed
chore: add readme and move files
1 parent e0ffbca commit 2f7e0e1

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
GO_ENVS = GO111MODULE=on CGO_ENABLED=0
1+
GO_FLAGS = GO111MODULE=on CGO_ENABLED=0
22

33
default: build
44

55
build:
6-
$(GO_ENVS) go build -o ./bin/duration cmd/duration/duration.go
6+
$(GO_FLAGS) go build -o ./bin/duration ./...
77

88
run: build
9-
./bin/duration ./script.sh
9+
./bin/duration ./test-script/script.sh
1010

1111
test:
1212
go test -cover ./...

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Duration
2+
3+
[![CircleCI](https://circleci.com/gh/mstruebing/duration.svg?style=svg)](https://circleci.com/gh/mstruebing/duration)
4+
5+
## Why?
6+
7+
If you have processes which takes a bit longer, especially if you know round about how much time it takes to complete, it is cool to know how long the process is already running.
8+
9+
![example](https://raw.githubusercontent.com/mstruebing/duration/master/example/example.gif "example")

example/example.gif

340 KB
Loading
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

3-
sleep 3
3+
sleep 1
44
echo hello
5-
sleep 3
5+
sleep 2
66
echo world
77
sleep 3
88
echo stuff

0 commit comments

Comments
 (0)