mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-02 18:03:32 +08:00
fileserver: Export BrowseTemplate
This allows programs embedding Caddy to customize the browse template.
This commit is contained in:
@ -66,7 +66,7 @@ respond with a file listing.`,
|
||||
Short: "Exports the default file browser template",
|
||||
Example: "caddy file-server export-template > browse.html",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_, err := io.WriteString(os.Stdout, defaultBrowseTemplate)
|
||||
_, err := io.WriteString(os.Stdout, BrowseTemplate)
|
||||
return err
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user