You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/extensions.go
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ package cmd
3
3
import (
4
4
"bytes"
5
5
"context"
6
+
"encoding/json"
6
7
"fmt"
7
8
"io"
8
9
"net/http"
@@ -76,7 +77,12 @@ func (e ExtensionsCmd) List(ctx context.Context, in ExtensionsListInput) error {
76
77
fmt.Println("[]")
77
78
returnnil
78
79
}
79
-
returnutil.PrintPrettyJSONSlice(*items)
80
+
bs, err:=json.MarshalIndent(*items, "", " ")
81
+
iferr!=nil {
82
+
returnerr
83
+
}
84
+
fmt.Println(string(bs))
85
+
returnnil
80
86
}
81
87
82
88
ifitems==nil||len(*items) ==0 {
@@ -320,7 +326,12 @@ func (e ExtensionsCmd) Upload(ctx context.Context, in ExtensionsUploadInput) err
320
326
}
321
327
322
328
ifin.Output=="json" {
323
-
returnutil.PrintPrettyJSON(item)
329
+
bs, err:=json.MarshalIndent(item, "", " ")
330
+
iferr!=nil {
331
+
returnerr
332
+
}
333
+
fmt.Println(string(bs))
334
+
returnnil
324
335
}
325
336
326
337
name:=item.Name
@@ -479,5 +490,5 @@ func init() {
479
490
extensionsBuildWebBotAuthCmd.Flags().String("url", "http://127.0.0.1:10001", "Base URL for update.xml and policy templates")
480
491
extensionsBuildWebBotAuthCmd.Flags().String("key", "", "Path to Ed25519 private key file (JWK or PEM format)")
481
492
extensionsBuildWebBotAuthCmd.Flags().String("upload", "", "Upload extension to Kernel with specified name (e.g., --upload web-bot-auth)")
482
-
extensionsBuildWebBotAuthCmd.Flags().String("signature-agent", "", "URL of the signature agent")
493
+
extensionsBuildWebBotAuthCmd.Flags().String("signature-agent", "", "Base URL of the signature agent (e.g., https://agent.example.com). Verifiers will look up /.well-known/http-message-signatures-directory at this URL.")
0 commit comments