mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-07 05:51:20 +07:00
32 lines
553 B
Go
32 lines
553 B
Go
/*
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
* Copyright (c) 2022-2023, v2rayA Organization <team@v2raya.org>
|
|
*/
|
|
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/spf13/cobra"
|
|
"github.com/v2rayA/dae/config"
|
|
)
|
|
|
|
var (
|
|
exportCmd = &cobra.Command{
|
|
Use: "export",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
_ = cmd.Help()
|
|
},
|
|
}
|
|
exportOutlineCmd = &cobra.Command{
|
|
Use: "outline",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println(config.ExportOutlineJson(Version))
|
|
},
|
|
}
|
|
)
|
|
|
|
func init() {
|
|
exportCmd.AddCommand(exportOutlineCmd)
|
|
}
|