Merge branch 'config-loc' of sloum/bombadillo into develop
Tested, no issues. Wording of documentation is good.
This commit is contained in:
commit
76b58a2337
|
@ -206,6 +206,10 @@ Writes data from a given link id in the current document to a file. The file is
|
|||
The following is a list of the settings that \fBbombadillo\fP recognizes, as well as a description of their valid values.
|
||||
.TP
|
||||
.B
|
||||
configlocation
|
||||
The path to the directory that the \fI.bombadillo.ini\fP configuration file is stored in. This is a \fBread only\fP setting and cannot be changed with the \fIset\fP command, but it can be read with the \fIcheck\fP command.
|
||||
.TP
|
||||
.B
|
||||
homeurl
|
||||
The url that \fBbombadillo\fP navigates to when the program loads or when the \fIhome\fP or \fIh\fP LINE COMMAND is issued. This should be a valid url. If a scheme/protocol is not included, gopher will be assumed.
|
||||
.TP
|
||||
|
|
|
@ -410,6 +410,10 @@ func (c *client) doCommandAs(action string, values []string) {
|
|||
c.Options[values[0]] = lowerCaseOpt(values[0], val)
|
||||
if values[0] == "tlskey" || values[0] == "tlscertificate" {
|
||||
c.Certs.LoadCertificate(c.Options["tlscertificate"], c.Options["tlskey"])
|
||||
} else if values[0] == "configlocation" {
|
||||
c.SetMessage("Cannot set READ ONLY setting 'configlocation'", true)
|
||||
c.DrawMessage()
|
||||
return
|
||||
}
|
||||
err := saveConfig()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue