Skip to content
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

log: add a GUM_LOG_TIME environment variable equivalent to --time #787

Open
Infinidoge opened this issue Dec 21, 2024 · 0 comments
Open

Comments

@Infinidoge
Copy link

Is your feature request related to a problem? Please describe.
I want to use gum log with a consistent display format, however not all parts of that actually have environment variables. Namely: You can't set the time format with an environment variable.

Additional note, may make into its own issue: The gum log examples include gum log -tsl ..., which is an invalid command for the output because it will treat sl as the time format.

Describe the solution you'd like
GUM_LOG_TIME environment variable that is equivalent to setting --time.

Describe alternatives you've considered
I don't believe there is an alternative, as environment variables are the dedicated way for setting stuff persistently like this. Time has style variables, so it not having a corresponding format variable is jarring.

Additional context
Needing to do gum log -t timeonly over and over again led to me making a function to wrap gum log in my script.

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

No branches or pull requests

1 participant