mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-09 23:40:08 +07:00
feat: dae can call now (#288)
This commit is contained in:
29
cmd/honk.go
Normal file
29
cmd/honk.go
Normal 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)
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user