Skip to content

enhance: add credential show command #491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 14, 2024

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 <[email protected]>
@@ -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
2 checks passed
@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