feat: commands
This commit is contained in:
5
main.go
5
main.go
@@ -35,6 +35,7 @@ type ExternalSpecResponse struct {
|
|||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
Agent string `json:"agent"`
|
Agent string `json:"agent"`
|
||||||
Specification string `json:"specification"`
|
Specification string `json:"specification"`
|
||||||
|
Commands []string `json:"commands"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ExternalPublicKeyResponse struct {
|
type ExternalPublicKeyResponse struct {
|
||||||
@@ -107,6 +108,10 @@ func buildExternalSpecCommand() *cli.Command {
|
|||||||
Success: true,
|
Success: true,
|
||||||
Agent: "external-signer-pkc11/0.1.0",
|
Agent: "external-signer-pkc11/0.1.0",
|
||||||
Specification: "External/1.0.0-alpha",
|
Specification: "External/1.0.0-alpha",
|
||||||
|
Commands: []string{
|
||||||
|
"external_public_key",
|
||||||
|
"external_sign",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
printResponseSlient(externalSpecResponse)
|
printResponseSlient(externalSpecResponse)
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user