Skip to content

Commit

Permalink
Adds release target; Updates readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciro S. Costa committed Jul 3, 2018
1 parent e2578a5 commit 94254cf
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 6 deletions.
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
flags: '-tags netgo'
env:
- 'CGO_ENABLED=0'
goos:
- 'linux'
- 'darwin'
goarch:
- 'amd64'
archive:
format: 'tar.gz'
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ fmt:

test:
go test ./... -v

release:
git tag -a $(VERSION) -m "Release" || true
git push origin $(VERSION)
goreleaser --rm-dist

.PHONY: build
4 changes: 0 additions & 4 deletions README.md

This file was deleted.

57 changes: 57 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
asciinema-edit
--------------

Auxiliary tools for dealing with [asciinema](https://asciinema.org/docs/getting-started) casts.


NAME:
asciinema-edit - edit recorded asciinema casts

INSTALL
Using `go`, fetch the latest from `master`

go get -u -v github.com/cirocosta/asciinema-edit

Retrieving from GitHub releases

curl -SOL ...

USAGE:
asciinema-edit [global options] command [command options] [arguments...]

VERSION:
dev

DESCRIPTION:
asciinema-edit provides missing features from the "asciinema" tool
when it comes to editing a cast that has already been recorded.

COMMANDS:
cut Removes a certain range of time frames.

If no file name is specified as a positional argument a cast is
expected to be served via stdin.

Once the transformation has been performed, the resulting cast is
either written to a file specified in the '--out' flag or to stdout
(default).

EXAMPLES
Remove frames from 12.2s to 16.3s from the cast passed in the commands
stdin.

cat 1234.cast | \
asciinema-edit cut \
--from=12.2 --to=15.3

Remove the exact frame at timestamp 12.2 from the cast file named
1234.cast.

asciinema-edit cut \
--from=12.2 --to=12.2 \
1234.cast
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ func main() {
app.Description = `asciinema-edit provides missing features from the "asciinema" tool
when it comes to editing a cast that has already been recorded.`
app.Commands = []cli.Command{
commands.AddDelay,
commands.Cut,
commands.MaxDelay,
}

app.Run(os.Args)
Expand Down

0 comments on commit 94254cf

Please sign in to comment.