- Add external tool inspection functionality in the engine, allowing detection of tools like FFmpeg, PDF converters, and Docker. - Update the `inspect` command to include detected tools in the output. - Remove the studio configuration from the application, simplifying the configuration structure and related code. - Clean up unused studio-related code in various files, including login processing and configuration management.
28 lines
572 B
Go
28 lines
572 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"github.com/yaoapp/kun/maps"
|
|
"github.com/yaoapp/kun/utils"
|
|
"github.com/yaoapp/yao/config"
|
|
"github.com/yaoapp/yao/engine"
|
|
"github.com/yaoapp/yao/share"
|
|
)
|
|
|
|
var inspectCmd = &cobra.Command{
|
|
Use: "inspect",
|
|
Short: L("Show app configure"),
|
|
Long: L("Show app configure"),
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
Boot()
|
|
engine.InspectExtTools()
|
|
res := maps.Map{
|
|
"version": share.VERSION,
|
|
"config": config.Conf,
|
|
}
|
|
if share.Tools != nil {
|
|
res["tools"] = share.Tools
|
|
}
|
|
utils.Dump(res)
|
|
},
|
|
}
|