Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d1f06f

Browse files
authoredMar 14, 2025··
chore: add function for recreate credentials (#95)
Signed-off-by: Grant Linville <[email protected]>
1 parent ff48fd2 commit 8d1f06f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎gptscript.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ func (g *GPTScript) CreateCredential(ctx context.Context, cred Credential) error
400400
return err
401401
}
402402

403+
func (g *GPTScript) RecreateAllCredentials(ctx context.Context) error {
404+
_, err := g.runBasicCommand(ctx, "credentials/recreate-all", struct{}{})
405+
return err
406+
}
407+
403408
func (g *GPTScript) RevealCredential(ctx context.Context, credCtxs []string, name string) (Credential, error) {
404409
out, err := g.runBasicCommand(ctx, "credentials/reveal", CredentialRequest{
405410
Context: credCtxs,

0 commit comments

Comments
 (0)
Please sign in to comment.