-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ciro S. Costa
committed
Jul 2, 2018
1 parent
2310a67
commit 86fa13b
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package commands | ||
|
||
import ( | ||
"gopkg.in/urfave/cli.v1" | ||
) | ||
|
||
var MaxDelay = cli.Command{ | ||
Name: "max-delay", | ||
Usage: "cuts all delays between commands up to a maximum value", | ||
Action: maxDelayAction, | ||
} | ||
|
||
func maxDelayAction(c *cli.Context) (err error) { | ||
return | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package editor_test | ||
|
||
import ( | ||
"testing" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
) | ||
|
||
func TestEditor(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "Editor Suite") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package editor_test | ||
|
||
import ( | ||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
|
||
. "github.com/cirocosta/asciinema-edit/editor" | ||
) | ||
|
||
var _ = Describe("Editor", func() { | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/cirocosta/asciinema-edit/commands" | ||
"gopkg.in/urfave/cli.v1" | ||
) | ||
|
||
var ( | ||
version = "dev" | ||
) | ||
|
||
func main () { | ||
func main() { | ||
app := cli.NewApp() | ||
|
||
app.Commands = []cli.Command{} | ||
app.Version = version | ||
app.Usage = "edit recorded asciinema casts" | ||
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.MaxDelay, | ||
} | ||
|
||
app.Run(os.Args) | ||
} |