adds high five
This commit is contained in:
parent
d96e4ec394
commit
f3f372f770
@ -59,6 +59,15 @@ func main() {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hf := &cobra.Command{
|
||||||
|
Use: "hf",
|
||||||
|
Short: "high five!",
|
||||||
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
|
t := yay.NewViewPort(yay.NewHighFive(), time.Duration(frameRate)*time.Millisecond)
|
||||||
|
t.Run()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
version := &cobra.Command{
|
version := &cobra.Command{
|
||||||
Use: "version",
|
Use: "version",
|
||||||
Short: "prints the version to stdout",
|
Short: "prints the version to stdout",
|
||||||
@ -71,5 +80,6 @@ func main() {
|
|||||||
main.AddCommand(claps)
|
main.AddCommand(claps)
|
||||||
main.AddCommand(apple)
|
main.AddCommand(apple)
|
||||||
main.AddCommand(version)
|
main.AddCommand(version)
|
||||||
|
main.AddCommand(hf)
|
||||||
main.Execute()
|
main.Execute()
|
||||||
}
|
}
|
||||||
|
29
highfive.go
Normal file
29
highfive.go
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
package yay
|
||||||
|
|
||||||
|
type HighFive struct {
|
||||||
|
Sequence
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewHighFive() *Dance {
|
||||||
|
d := &Dance{
|
||||||
|
Sequence{
|
||||||
|
Frames: [][]rune{
|
||||||
|
[]rune(`high`),
|
||||||
|
[]rune(`five`),
|
||||||
|
[]rune(`high`),
|
||||||
|
[]rune(`five`),
|
||||||
|
|
||||||
|
[]rune(`o o`),
|
||||||
|
[]rune(`o o`),
|
||||||
|
[]rune(`d b`),
|
||||||
|
[]rune(`d b`),
|
||||||
|
[]rune(`o/\o`),
|
||||||
|
[]rune(`d b`),
|
||||||
|
[]rune(`d b`),
|
||||||
|
[]rune(`o o`),
|
||||||
|
[]rune(`o o`),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
return d
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user