working commit

This commit is contained in:
2026-02-15 17:47:45 +02:00
parent 15a3379e5c
commit 2373af081e
10 changed files with 159 additions and 49 deletions
+4 -4
View File
@@ -123,7 +123,7 @@ type CreateGrantParams struct {
Pattern string
}
type CreateGrantResult struct {
GrantID string `json:"grantId"`
GrantID string `yaml:"grantId"`
}
func (util *GrantUtil) CreateGrant(cmd *cobra.Command, args []string) {
@@ -184,7 +184,7 @@ type GetGrantParams struct {
}
type GetGrantResult struct {
Grant *descr.Grant `json:"grant,omitempty"`
Grant *descr.Grant `yaml:"grant,omitempty"`
}
func (util *GrantUtil) GetGrant(cmd *cobra.Command, args []string) {
@@ -247,8 +247,8 @@ type ListGrantsParams struct {
}
type ListGrantsResult struct {
Grants []descr.Grant `json:"grants,omitempty"`
Rights []string `json:"rights,omitempty"`
Grants []descr.Grant `yaml:"grants,omitempty"`
Rights []string `yaml:"rights,omitempty"`
}
func (util *GrantUtil) ListGrants(cmd *cobra.Command, args []string) {