-
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
600e4a6
commit 9dc9d8d
Showing
4 changed files
with
59 additions
and
1 deletion.
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,28 @@ | ||
package cast | ||
|
||
import ( | ||
_ "encoding/json" | ||
) | ||
|
||
type Header struct { | ||
Version uint8 `json:"version,omitempty"` | ||
Width uint `json:"width,omitempty"` | ||
Height uint `json:"height,omitempty"` | ||
Timestamp uint `json:"timestamp,omitempty"` | ||
Title string `json:"title,omitempty"` | ||
Env struct { | ||
Shell string `json:"SHELL,omitempty"` | ||
Term string `json:"TERM,omitempty"` | ||
} `json:"env,omitempty"` | ||
} | ||
|
||
type Event struct { | ||
Time float64 | ||
Type string | ||
Data string | ||
} | ||
|
||
type Cast struct { | ||
Header Header | ||
EventStream []*Event | ||
} |
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 cast_test | ||
|
||
import ( | ||
"testing" | ||
|
||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
) | ||
|
||
func TestCast(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "Cast 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 cast_test | ||
|
||
import ( | ||
. "github.com/onsi/ginkgo" | ||
. "github.com/onsi/gomega" | ||
|
||
. "github.com/cirocosta/asciinema-edit/cast" | ||
) | ||
|
||
var _ = Describe("Cast", 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