Skip to content

Conversation

@bbc2
Copy link
Collaborator

@bbc2 bbc2 commented Mar 28, 2021

The get subcommand would return key=value, which is impractical to retrieve the value of a key in a script. Since the key is already known by the caller, there is no point in showing it.

This also makes the output consistent with the documentation for the subcommand.

Closes #307.

@bbc2 bbc2 self-assigned this Mar 28, 2021
@bbc2 bbc2 force-pushed the cli-get-only-return-value branch from f40b76e to 5470217 Compare March 28, 2021 15:59
The `get` subcommand would return `key=value`, which is impractical to
retrieve the value of a key in a script.  Since the `key` is already
known by the caller, there is no point in showing it.

This also makes the output consistent with the documentation for the
subcommand.
@bbc2 bbc2 force-pushed the cli-get-only-return-value branch from 5470217 to d1cd067 Compare March 28, 2021 16:00
@bbc2 bbc2 merged commit 48c5c8e into theskumar:master Apr 2, 2021
@bbc2 bbc2 deleted the cli-get-only-return-value branch April 2, 2021 20:17
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.

dotenv get 'key' returns both key and value, not just key

1 participant