We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As discussed in #73, there could be a config option where - if it's set - the cache automatically refreshes itself when it's outdated.
Implementation notes (copied from here):
This would require a slight reorganization of the main function:
main
args.flag_config_path
args.flag_seed_config
args.flag_version
print_page
src/config.rs
RawConfig
Config
RawConfig::new()
The default configuration can be generated with tldr --seed-config. My suggestion would be:
tldr --seed-config
[updates] auto_update = false auto_update_interval_hours = 720
(The auto_update_interval_hours could then be set to MAX_CACHE_AGE * 24 by default.)
auto_update_interval_hours
MAX_CACHE_AGE * 24
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
As discussed in #73, there could be a config option where - if it's set - the cache automatically refreshes itself when it's outdated.
Implementation notes (copied from here):
This would require a slight reorganization of the
main
function:args.flag_config_path
andargs.flag_seed_config
right after handlingargs.flag_version
(simply move up the code blocks)print_page
into the main function, right after theargs.flag_seed_config
handling blocksrc/config.rs
, add the new config elements to theRawConfig
andConfig
structs and add the defaults toRawConfig::new()
.The default configuration can be generated with
tldr --seed-config
. My suggestion would be:(The
auto_update_interval_hours
could then be set toMAX_CACHE_AGE * 24
by default.)The text was updated successfully, but these errors were encountered: