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

Display where is current cache folder #1472

Closed
non-descriptive opened this issue Dec 13, 2022 · 1 comment
Closed

Display where is current cache folder #1472

non-descriptive opened this issue Dec 13, 2022 · 1 comment
Milestone

Comments

@non-descriptive
Copy link

When running gitui with -l/--logging parameter it is unclear where is the log stored. So it would be good to somehow display what is current cache directory is demangled from all the environment variables. There are couple ways to display it:

  1. When we call gitui --help display it near --logging description, something like
# on Linux
  -l, --logging                Stores logging output into a cache directory (/home/user/.cache/gitui)
# on Windows
  -l, --logging                Stores logging output into a cache directory (C:\Users\user\.cache\gitui)
  1. We can add extra command to display whatever paths gitui uses.
$ gitui --paths
home_dir=/home/user/
cache_dir=/home/user/.cache/gitui
...

or maybe

$ gitui --env
GIT_DIR=<not set>
GIT_WORKTREE=<not set>
home_dir=/home/user/
cache_dir=/home/user/.cache/gitui
  1. Finally when running with --logging we can just yield sign
Log will be stored in: /home/user/.cache/gitui/gitui.log

and we will know log path even if gitui panics somehow.

@extrawurst
Copy link
Collaborator

good suggestion. I went for option 3 as a low hanging fruit

IndianBoy42 pushed a commit to IndianBoy42/gitui that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants