mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-22 21:25:01 +07:00
feat: dae can call now (#288)
This commit is contained in:
parent
8bbfd691a7
commit
c784ebaf53
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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user