mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 19:58:03 +01:00
18 lines
314 B
Go
18 lines
314 B
Go
package commands
|
|
|
|
import "github.com/asciinema/asciinema-cli/asciicast"
|
|
|
|
type PlayCommand struct {
|
|
Player asciicast.Player
|
|
}
|
|
|
|
func NewPlayCommand() *PlayCommand {
|
|
return &PlayCommand{
|
|
Player: asciicast.NewPlayer(),
|
|
}
|
|
}
|
|
|
|
func (c *PlayCommand) Execute(filename string) error {
|
|
return c.Player.Play(filename)
|
|
}
|