Skip to content

Commit 600e4a6

Browse files
author
Ciro S. Costa
committed
Introduces few more command boilerplate; Creates readme
1 parent 86fa13b commit 600e4a6

File tree

5 files changed

+36
-2
lines changed

5 files changed

+36
-2
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# asciinema-edit
2+
3+
Auxiliary tools for dealing with [asciinema](https://asciinema.org/docs/getting-started) casts.
4+

commands/add-delay.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package commands
2+
3+
import (
4+
"gopkg.in/urfave/cli.v1"
5+
)
6+
7+
var AddDelay = cli.Command{
8+
Name: "add-delay",
9+
Usage: "Increases the delay of a given frame",
10+
Action: addDelayAction,
11+
}
12+
13+
func addDelayAction(c *cli.Context) (err error) {
14+
return
15+
}

commands/cut.go

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package commands
2+
3+
import (
4+
"gopkg.in/urfave/cli.v1"
5+
)
6+
7+
var Cut = cli.Command{
8+
Name: "cut",
9+
Usage: "Removes a certain range of time frames",
10+
Action: cutAction,
11+
}
12+
13+
func cutAction(c *cli.Context) (err error) {
14+
return
15+
}

commands/max-delay.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
var MaxDelay = cli.Command{
88
Name: "max-delay",
9-
Usage: "cuts all delays between commands up to a maximum value",
9+
Usage: "Cuts all delays between commands down to a given value",
1010
Action: maxDelayAction,
1111
}
1212

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func main() {
1515
app := cli.NewApp()
1616

1717
app.Version = version
18-
app.Usage = "edit recorded asciinema casts"
18+
app.Usage = "edit recorded asciinema casts"
1919
app.Description = `asciinema-edit provides missing features from the "asciinema" tool
2020
when it comes to editing a cast that has already been recorded.`
2121
app.Commands = []cli.Command{

0 commit comments

Comments
 (0)