implement additional build options for EurekaAdapter
This commit is contained in:
parent
2833ba2574
commit
e975a7675b
3 changed files with 22 additions and 1 deletions
|
@ -267,7 +267,24 @@ func (self *EurekaAdapter) Build(buildOptions map[BuildOption]string) BuildStatu
|
||||||
Name: "twtxt",
|
Name: "twtxt",
|
||||||
Type: "string",
|
Type: "string",
|
||||||
}]
|
}]
|
||||||
|
|
||||||
|
rmNewestTwtxt := buildOptions[BuildOption{
|
||||||
|
Name: "remove newest twtxt",
|
||||||
|
Type: "bool",
|
||||||
|
}]
|
||||||
|
|
||||||
|
clearThumbs := buildOptions[BuildOption{
|
||||||
|
Name: "clear thumbnail cache",
|
||||||
|
Type: "bool",
|
||||||
|
}]
|
||||||
|
|
||||||
cmdArgs := []string{}
|
cmdArgs := []string{}
|
||||||
|
if clearThumbs != "" {
|
||||||
|
cmdArgs = append(cmdArgs, "-r")
|
||||||
|
}
|
||||||
|
if rmNewestTwtxt != "" {
|
||||||
|
cmdArgs = append(cmdArgs, "-d")
|
||||||
|
}
|
||||||
if twtxt != "" {
|
if twtxt != "" {
|
||||||
cmdArgs = append(cmdArgs, "-t")
|
cmdArgs = append(cmdArgs, "-t")
|
||||||
cmdArgs = append(cmdArgs, twtxt)
|
cmdArgs = append(cmdArgs, twtxt)
|
||||||
|
|
|
@ -370,6 +370,10 @@ input[type="file"]:valid + .file-feedback::after {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.build label.bool input {
|
||||||
|
display: inline;
|
||||||
|
margin: 0.5em;
|
||||||
|
}
|
||||||
@media screen and (max-width: 512px) {
|
@media screen and (max-width: 512px) {
|
||||||
body {
|
body {
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<details><summary>Build Options</summary>
|
<details><summary>Build Options</summary>
|
||||||
{{ range $opt := $buildOpts }}
|
{{ range $opt := $buildOpts }}
|
||||||
{{ if eq ($opt).Type "bool" }}
|
{{ if eq ($opt).Type "bool" }}
|
||||||
<label>{{($opt).Name}} <input type="checkbox" name="{{($opt).Name}}:{{($opt).Type}}"/></label><br/>
|
<label class="bool">{{($opt).Name}} <input type="checkbox" name="{{($opt).Name}}:{{($opt).Type}}"/></label><br/>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range $opt := $buildOpts }}
|
{{ range $opt := $buildOpts }}
|
||||||
|
|
Loading…
Reference in a new issue