mirror of
https://github.com/maaslalani/confetty.git
synced 2024-11-21 23:26:40 +00:00
s/confetty/confetti
This commit is contained in:
parent
7a252dff8d
commit
5b7a3f2027
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/maaslalani/confetty/confetty"
|
"github.com/maaslalani/confetty/confetti"
|
||||||
"github.com/maaslalani/confetty/fireworks"
|
"github.com/maaslalani/confetty/fireworks"
|
||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
@ -16,7 +16,7 @@ var rootCmd = &cobra.Command{
|
|||||||
Short: "Confetti in your TTY",
|
Short: "Confetti in your TTY",
|
||||||
Long: `Confetty gives your confetti and fireworks in your terminal`,
|
Long: `Confetty gives your confetti and fireworks in your terminal`,
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
p := tea.NewProgram(confetty.InitialModel(), tea.WithAltScreen())
|
p := tea.NewProgram(confetti.InitialModel(), tea.WithAltScreen())
|
||||||
return p.Start()
|
return p.Start()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -26,7 +26,7 @@ var confettiCmd = &cobra.Command{
|
|||||||
Aliases: []string{"confetty"},
|
Aliases: []string{"confetty"},
|
||||||
Short: "Confetti in your TTY",
|
Short: "Confetti in your TTY",
|
||||||
RunE: func(cmd *cobra.Command, args []string) error {
|
RunE: func(cmd *cobra.Command, args []string) error {
|
||||||
p := tea.NewProgram(confetty.InitialModel(), tea.WithAltScreen())
|
p := tea.NewProgram(confetti.InitialModel(), tea.WithAltScreen())
|
||||||
return p.Start()
|
return p.Start()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package confetty
|
package confetti
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
Loading…
Reference in New Issue
Block a user