config init
Generate a default config file
Usage
bookmark initDescription
newConfigInitCmd creates the config init command for generating a default config file.
The config init command creates a new configuration file with default values at the standard XDG config location ($XDG_CONFIG_HOME/bookmark/config.toml).
Flags:
- —force/-f: Overwrite existing config file
- —editor/-e: Open the config file in your editor after creation
The generated config file includes commented examples for all available options.
Examples:
# Generate default configbookmark config init
# Overwrite existing configbookmark config init --force
# Generate and open in editorbookmark config init --editorFlags
| Flag | Type | Description |
|---|---|---|
-f, --force | bool | overwrite existing config |
-e, --editor | bool | open config in editor after creation |
Source
See config_init.go for implementation details.