Skip to content

Commit 9011102

Browse files
committed
doc for exportconfig
1 parent 083d99a commit 9011102

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

cmd/wsh/cmd/wshcmd-export-config.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
func init() {
1515
var exportConfigCmd = &cobra.Command{
16-
Use: "export-config [output-path]",
16+
Use: "exportconfig [output-path]",
1717
Short: "export Wave Terminal configuration",
1818
Long: "Export Wave Terminal configuration files into a zip archive",
1919
RunE: runExportConfig,
@@ -23,7 +23,7 @@ func init() {
2323

2424
func runExportConfig(cmd *cobra.Command, args []string) error {
2525
if len(args) != 1 {
26-
return fmt.Errorf("export-config requires an output path")
26+
return fmt.Errorf("exportconfig requires an output path")
2727
}
2828

2929
outputPath := args[0]
@@ -38,7 +38,7 @@ func runExportConfig(cmd *cobra.Command, args []string) error {
3838
}
3939

4040
if err := zipDir(configDir, outputPath); err != nil {
41-
return fmt.Errorf("export-config failed: %v", err)
41+
return fmt.Errorf("exportconfig failed: %v", err)
4242
}
4343

4444
fmt.Printf("Configuration exported to %s\n", outputPath)

docs/docs/wsh-reference.mdx

+10
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ wsh editconfig presets/ai.json
153153

154154
---
155155

156+
## exportconfig
157+
158+
You can export your Wave's config files into a zip archive using this command.
159+
160+
```
161+
wsh exportconfig [output-path]
162+
```
163+
164+
---
165+
156166
## setbg
157167

158168
The `setbg` command allows you to set a background image or color for the current tab with various customization options.

0 commit comments

Comments
 (0)