Skip to content

Automatic updates happen only during page lookup #21

Description

@TheRootDaemon

Automatic updates only happen during page lookups, it does not care about the other flags such as --search, --info, etc.

# when invoking --info with auto update disabled~ : bin/tldr -i
Cache: /home/therootdaemon/.cache/tlgc (last update: 27d, 22h ago)
Auto update: disabled
Mirror: https://github.com/tldr-pages/tldr/releases/latest/download
Installed languages:
  total : 7384 pages
  en    : 7384 pages (android: 22, cisco-ios: 17, common: 4595, dos: 26, freebsd: 16, linux: 2010, netbsd: 8, openbsd: 10, osx: 368, sunos: 11, windows: 301)

 ➜ ~ : cat ~/.config/tlgc/config.toml
[output]
option_style = "both"

[cache]
auto_update = false~ : v ~/.config/tlgc/config.toml

# when invoking --info with auto update enabled~ : bin/tldr -i
Cache: /home/therootdaemon/.cache/tlgc (last update: 27d, 22h ago)
Auto update: every 14d (next in 0s)
Mirror: https://github.com/tldr-pages/tldr/releases/latest/download
Installed languages:
  total : 7384 pages
  en    : 7384 pages (android: 22, cisco-ios: 17, common: 4595, dos: 26, freebsd: 16, linux: 2010, netbsd: 8, openbsd: 10, osx: 368, sunos: 11, windows: 301)

 ➜ ~ : cat ~/.config/tlgc/config.toml
[output]
option_style = "both"

# [cache]
# auto_update = false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions