aboutsummaryrefslogtreecommitdiff
path: root/cmd/aura
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-26 19:47:00 -0400
committerXe Iaso <me@xeiaso.net>2025-04-26 19:47:00 -0400
commitb02d2ba479446de6f38fce1e25cec8564ef9010a (patch)
treea60d001dda18187552591f70224bea38cc2000de /cmd/aura
parent4d27a5e7c416e2a6cab039684037681cdac63a19 (diff)
downloadx-b02d2ba479446de6f38fce1e25cec8564ef9010a.tar.xz
x-b02d2ba479446de6f38fce1e25cec8564ef9010a.zip
chore(templ): fix go generate commands
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/aura')
-rw-r--r--cmd/aura/aura_templ.go16
-rw-r--r--cmd/aura/main.go2
2 files changed, 12 insertions, 6 deletions
diff --git a/cmd/aura/aura_templ.go b/cmd/aura/aura_templ.go
index 421d54b..174a3cc 100644
--- a/cmd/aura/aura_templ.go
+++ b/cmd/aura/aura_templ.go
@@ -1,6 +1,6 @@
// Code generated by templ - DO NOT EDIT.
-// templ: version: v0.2.771
+// templ: version: v0.3.857
package main
//lint:file-ignore SA4006 This context is only used if a nested component is present.
@@ -11,6 +11,9 @@ import templruntime "github.com/a-h/templ/runtime"
func index() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -26,17 +29,20 @@ func index() templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p><img src=\"/static/aura.webp\"></p><h2>Archive</h2><ul><li><a href=\"/sleepypony/\">Early DJ Sleepypony sets</a></li><li><a href=\"/BronyRadio/\">Early BronyRadio sets</a></li><li><a href=\"/var/93252527679639552/\">Current PonyvilleFM sets</a></li></ul>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<p><img src=\"/static/aura.webp\"></p><h2>Archive</h2><ul><li><a href=\"/sleepypony/\">Early DJ Sleepypony sets</a></li><li><a href=\"/BronyRadio/\">Early BronyRadio sets</a></li><li><a href=\"/var/93252527679639552/\">Current PonyvilleFM sets</a></li></ul>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
func notFound() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
+ if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {
+ return templ_7745c5c3_CtxErr
+ }
templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W)
if !templ_7745c5c3_IsBuffer {
defer func() {
@@ -52,11 +58,11 @@ func notFound() templ.Component {
templ_7745c5c3_Var2 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "<p>The URL you requested could not be found. Please check your URL and hang up to try your call again.</p>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- return templ_7745c5c3_Err
+ return nil
})
}
diff --git a/cmd/aura/main.go b/cmd/aura/main.go
index 4f7a535..c364efd 100644
--- a/cmd/aura/main.go
+++ b/cmd/aura/main.go
@@ -27,7 +27,7 @@ import (
"within.website/x/xess"
)
-//go:generate go run github.com/a-h/templ/cmd/templ@latest generate
+//go:generate go tool templ generate
var (
token = flag.String("token", "", "Token for authentication")