feat: commands
This commit is contained in:
11
main.go
11
main.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user