dae/cmd/honk.go
mzz c6557ce207
refactor/fix: match dscp instead of tos (#294)
Co-authored-by: dae-bot[bot] <136105375+dae-bot[bot]@users.noreply.github.com>
2023-08-20 23:43:33 +08:00

35 lines
625 B
Go

/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2023, daeuniverse Organization <dae@v2raya.org>
*/
package cmd
import (
"fmt"
"os"
"time"
"github.com/spf13/cobra"
)
var (
honkCmd = &cobra.Command{
Use: "honk",
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)
}