Skip to content

Conversation

g-linville
Copy link
Member

This adds a new command to show the environment variables that are stored in a credential.

Signed-off-by: Grant Linville <grant@acorn.io>
Signed-off-by: Grant Linville <grant@acorn.io>
@@ -68,7 +69,7 @@ func (c *Credential) Run(_ *cobra.Command, _ []string) error {
defer w.Flush()

if c.ShowEnvVars {
_, _ = w.Write([]byte("CONTEXT\tTOOL\tENVIRONMENT VARIABLES\n"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We previously referred to a credential name simply by the tool that created it, which is still the default, but now that aliases are supported as well, I changed the output format here and in other places.

@g-linville g-linville merged commit 3277a3c into gptscript-ai:main Jun 14, 2024
@g-linville g-linville deleted the cred-show branch June 14, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants