aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-10-02 15:15:08 -0400
committerXe Iaso <me@xeiaso.net>2023-10-02 15:15:08 -0400
commit2f333da4919ee71b94a0086aef47e4357b7d8135 (patch)
tree93546e7c1cb831446237c664451e39bd505ace1d /internal
parent55a6485b7ffc6a07f0d5f5c042806d9fd2c44857 (diff)
downloadxesite-2f333da4919ee71b94a0086aef47e4357b7d8135.tar.xz
xesite-2f333da4919ee71b94a0086aef47e4357b7d8135.zip
bring back argv[0]
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'internal')
-rw-r--r--internal/lume/lume.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/lume/lume.go b/internal/lume/lume.go
index 294f42c..7bee446 100644
--- a/internal/lume/lume.go
+++ b/internal/lume/lume.go
@@ -160,7 +160,7 @@ func New(ctx context.Context, o *Options) (*FS, error) {
if o.MiToken != "" {
fs.miClient = mi.New(o.MiToken, "xeiaso.net/v4/internal/lume "+os.Args[0])
- slog.Info("mi integration enabled")
+ slog.Debug("mi integration enabled")
}
conf, err := config.Load(filepath.Join(fs.repoDir, "config.dhall"))
@@ -318,6 +318,7 @@ func (f *FS) writeConfig() error {
}
for fname, data := range map[string]any{
+ "argv.json": os.Args,
"authors.json": f.conf.Authors,
"characters.json": f.conf.Characters,
"contactLinks.json": f.conf.ContactLinks,