Edit the config "external_editor" to overwrite $EDITOR

Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
Hadi
2026-05-19 10:13:36 +02:00
parent a147e8b972
commit 0cfba17d3d
3 changed files with 15 additions and 8 deletions
+8 -7
View File
@@ -18,13 +18,14 @@ type Config struct {
Version string `mapstructure:"-"`
App struct {
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
CertDir string `mapstructure:"cert_dir"`
ProjectDir string `mapstructure:"project_dir"`
PluginsDir string `mapstructure:"plugins_dir"`
UpstreamProxy string `mapstructure:"upstream_proxy"`
MaxBodySizeMB int `mapstructure:"max_body_size_mb"`
Host string `mapstructure:"host"`
Port int `mapstructure:"port"`
CertDir string `mapstructure:"cert_dir"`
ProjectDir string `mapstructure:"project_dir"`
PluginsDir string `mapstructure:"plugins_dir"`
UpstreamProxy string `mapstructure:"upstream_proxy"`
MaxBodySizeMB int `mapstructure:"max_body_size_mb"`
ExternalEditor string `mapstructure:"external_editor"`
} `mapstructure:"app"`
TUI struct {