@@ -10,7 +10,6 @@ import (
10
10
"github.com/bacalhau-project/bacalhau/cmd/util/flags/cliflags"
11
11
"github.com/bacalhau-project/bacalhau/cmd/util/hook"
12
12
"github.com/bacalhau-project/bacalhau/cmd/util/output"
13
- "github.com/bacalhau-project/bacalhau/pkg/config"
14
13
"github.com/bacalhau-project/bacalhau/pkg/config/types"
15
14
)
16
15
@@ -23,8 +22,13 @@ func newListCmd() *cobra.Command {
23
22
Wide : false ,
24
23
}
25
24
listCmd := & cobra.Command {
26
- Use : "list" ,
27
- Short : "List all config keys." ,
25
+ Use : "list" ,
26
+ Short : "List all config keys and their descriptions" ,
27
+ Long : `The config list command displays all available configuration keys along with their detailed descriptions.
28
+ This comprehensive list helps you understand the settings you can adjust to customize the bacalhau's behavior.
29
+ Each key shown can be used with:
30
+ - bacalhau config set <key> <value> to directly set the value
31
+ - bacalhau --config=<key>=<value> to temporarily modify the setting for a single command execution` ,
28
32
Args : cobra .MinimumNArgs (0 ),
29
33
PreRunE : hook .ClientPreRunHooks ,
30
34
PostRunE : hook .ClientPostRunHooks ,
@@ -38,7 +42,6 @@ func newListCmd() *cobra.Command {
38
42
39
43
type configListEntry struct {
40
44
Key string
41
- EnvVar string
42
45
Description string
43
46
}
44
47
@@ -51,7 +54,6 @@ func list(cmd *cobra.Command, o output.OutputOptions) error {
51
54
for key , description := range types .ConfigDescriptions {
52
55
cfgList = append (cfgList , configListEntry {
53
56
Key : key ,
54
- EnvVar : config .KeyAsEnvVar (key ),
55
57
Description : description ,
56
58
})
57
59
}
@@ -70,12 +72,6 @@ var listColumns = []output.TableColumn[configListEntry]{
70
72
return s .Key
71
73
},
72
74
},
73
- {
74
- ColumnConfig : table.ColumnConfig {Name : "Environment Variable" , WidthMax : 80 , WidthMaxEnforcer : text .WrapHard },
75
- Value : func (v configListEntry ) string {
76
- return fmt .Sprintf ("%v" , v .EnvVar )
77
- },
78
- },
79
75
{
80
76
ColumnConfig : table.ColumnConfig {Name : "Description" , WidthMax : 80 , WidthMaxEnforcer : text .WrapText },
81
77
Value : func (v configListEntry ) string {
0 commit comments