feat: commands

This commit is contained in:
2025-05-23 06:57:01 +08:00
parent cc49060a4b
commit 4e5c9f5b4e

11
main.go
View File

@@ -32,9 +32,10 @@ type ErrorResponse struct {
}
type ExternalSpecResponse struct {
Success bool `json:"success"`
Agent string `json:"agent"`
Specification string `json:"specification"`
Success bool `json:"success"`
Agent string `json:"agent"`
Specification string `json:"specification"`
Commands []string `json:"commands"`
}
type ExternalPublicKeyResponse struct {
@@ -107,6 +108,10 @@ func buildExternalSpecCommand() *cli.Command {
Success: true,
Agent: "external-signer-pkc11/0.1.0",
Specification: "External/1.0.0-alpha",
Commands: []string{
"external_public_key",
"external_sign",
},
}
printResponseSlient(externalSpecResponse)
return nil