Skip to content

Commit

Permalink
chore: honk with sound (daeuniverse#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
troubadour-hell committed Aug 20, 2023
1 parent 7273be6 commit 5c9e0cf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/honk.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ package cmd
import (
"fmt"
"os"
"time"

"github.com/spf13/cobra"
)
Expand All @@ -18,11 +19,16 @@ var (
Short: "Let dae call for you.",
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Honk! Honk! Honk! This is dae!")
fmt.Println("\a\a\a\x1b[1A")
time.Sleep(3 * 100 * time.Millisecond)
fmt.Println("\a\a\a\x1b[1A")
time.Sleep(3 * 100 * time.Millisecond)
fmt.Println("\a\a\a\x1b[1A")
os.Exit(0)
},
}
)

func init() {
rootCmd.AddCommand(honkCmd)
}
}

0 comments on commit 5c9e0cf

Please sign in to comment.