feat: dae can call now (#288)

This commit is contained in:
Nicolas 2023-08-19 12:02:49 +08:00 committed by GitHub
parent 8bbfd691a7
commit c784ebaf53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

29
cmd/honk.go Normal file
View File

@ -0,0 +1,29 @@
/*
* SPDX-License-Identifier: AGPL-3.0-only
* Copyright (c) 2022-2023, daeuniverse Organization <dae@v2raya.org>
*/
package cmd
import (
"fmt"
"os"
"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!")
os.Exit(0)
},
}
)
func init() {
rootCmd.AddCommand(honkCmd)
}