chore(confix): update <simd> config subcommand description (#19047)

This commit is contained in:
Halimao 2024-01-16 15:46:20 +08:00 committed by GitHub
parent b44317ebce
commit 753ac5d850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import (
func HomeCommand() *cobra.Command {
return &cobra.Command{
Use: "home",
Short: "Outputs the folder used as the binary home. No home directory is set when using the tool standalone.",
Short: "Outputs the folder used as the binary home. No home directory is set when using the `confix` tool standalone.",
Long: `Outputs the folder used as the binary home. In order to change the home directory path, set the $APPD_HOME environment variable, or use the "--home" flag.`,
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {

View File

@ -22,7 +22,7 @@ func SetCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "set [config] [key] [value]",
Short: "Set an application config value",
Long: "Set an application config value. The [config] argument must be the path of the file when using the tool standalone, otherwise it must be the name of the config file without the .toml extension.",
Long: "Set an application config value. The [config] argument must be the path of the file when using the `confix` tool standalone, otherwise it must be the name of the config file without the .toml extension.",
Args: cobra.ExactArgs(3),
RunE: func(cmd *cobra.Command, args []string) error {
filename, inputValue := args[0], args[2]
@ -89,7 +89,7 @@ func GetCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "get [config] [key]",
Short: "Get an application config value",
Long: "Get an application config value. The [config] argument must be the path of the file when using the too standalone, otherwise it must be the name of the config file without the .toml extension.",
Long: "Get an application config value. The [config] argument must be the path of the file when using the `confix` tool standalone, otherwise it must be the name of the config file without the .toml extension.",
Args: cobra.ExactArgs(2),
RunE: func(cmd *cobra.Command, args []string) error {
filename, key := args[0], args[1]

View File

@ -18,6 +18,7 @@ func ViewCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "view [config]",
Short: "View the config file",
Long: "View the config file. The [config] argument must be the path of the file when using the `confix` tool standalone, otherwise it must be the name of the config file without the .toml extension.",
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
filename := args[0]