SHA256
5
0
forked from pool/tlrc

12 Commits

Author SHA256 Message Date
186fec78d1 Accepting request 1310912 from utilities
OBS-URL: https://build.opensuse.org/request/show/1310912
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tlrc?expand=0&rev=10
2025-10-12 20:24:26 +00:00
dae41ea87d - Add shell completion
- Update OBS vendoring

OBS-URL: https://build.opensuse.org/package/show/utilities/tlrc?expand=0&rev=20
2025-10-12 09:26:34 +00:00
ddc12b668a Accepting request 1310435 from utilities
- Update to 1.12.0:
  * New config option: cache.defer_auto_update to perform automatic
    updates after the page is shown (#125)
  * Add verbose mode (--verbose command-line option)
  * Fix panic on --config-path when TLRC_CONFIG is set to an invalid value
  * Don't print colors if stderr is not a terminal
  * --clean-cache is now interactive, you can choose which directories
    to delete

OBS-URL: https://build.opensuse.org/request/show/1310435
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tlrc?expand=0&rev=9
2025-10-11 20:49:04 +00:00
b0328e0015 - Update to 1.12.0:
* New config option: cache.defer_auto_update to perform automatic
    updates after the page is shown (#125)
  * Add verbose mode (--verbose command-line option)
  * Fix panic on --config-path when TLRC_CONFIG is set to an invalid value
  * Don't print colors if stderr is not a terminal
  * --clean-cache is now interactive, you can choose which directories
    to delete

OBS-URL: https://build.opensuse.org/package/show/utilities/tlrc?expand=0&rev=18
2025-10-10 05:23:57 +00:00
a56715bb7f Accepting request 1275418 from utilities
- Update to 1.11.1:
  * Increase the HTTP request timeout to 30 seconds (#128)
  * Fix issues with proxies (#111)

OBS-URL: https://build.opensuse.org/request/show/1275418
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tlrc?expand=0&rev=8
2025-05-08 16:23:14 +00:00
3f7beec6ce - Update to 1.11.1:
* Increase the HTTP request timeout to 30 seconds (#128)
  * Fix issues with proxies (#111)

OBS-URL: https://build.opensuse.org/package/show/utilities/tlrc?expand=0&rev=16
2025-05-08 07:06:44 +00:00
2ca800c0d5 Accepting request 1253602 from utilities
- Update to 1.11.0:
  * Fix loading TLS certificates from the OS store (#111)
  * New config option: output.line_length. The default is 0, which
    means to use the width of the terminal.
    Description lines will be wrapped to never exceed this value (#120).
  * Client specification v2.3:
    + new command-line options: --short-options and --long-options.
    + new config option: output.option_style. Can be short, long or both.
      Specifies which option style should be shown in new option placeholders ({{[-s|--long]}}).

OBS-URL: https://build.opensuse.org/request/show/1253602
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tlrc?expand=0&rev=7
2025-03-17 21:18:09 +00:00
ec6c56fa7f - Update to 1.11.0:
* Fix loading TLS certificates from the OS store (#111)
  * New config option: output.line_length. The default is 0, which
    means to use the width of the terminal.
    Description lines will be wrapped to never exceed this value (#120).
  * Client specification v2.3:
    + new command-line options: --short-options and --long-options.
    + new config option: output.option_style. Can be short, long or both.
      Specifies which option style should be shown in new option placeholders ({{[-s|--long]}}).

OBS-URL: https://build.opensuse.org/package/show/utilities/tlrc?expand=0&rev=14
2025-03-17 06:16:40 +00:00
af68647f8f Accepting request 1244672 from utilities
- Update to 1.10.0:
  * Fixed stretched man page rendering when using mandoc
  * Fixed wrong error messages when the pages.en directory in the
    cache is empty
  * The location of the config file can now be overridden using
    the TLRC_CONFIG environment variable (#89)
  * Added support for hex color codes (#115)

OBS-URL: https://build.opensuse.org/request/show/1244672
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tlrc?expand=0&rev=6
2025-02-10 16:29:13 +00:00
9d5b981d48 - Update to 1.10.0:
* Fixed stretched man page rendering when using mandoc
  * Fixed wrong error messages when the pages.en directory in the
    cache is empty
  * The location of the config file can now be overridden using
    the TLRC_CONFIG environment variable (#89)
  * Added support for hex color codes (#115)

OBS-URL: https://build.opensuse.org/package/show/utilities/tlrc?expand=0&rev=12
2025-02-10 07:49:30 +00:00
f7e7840166 Accepting request 1190369 from utilities
- Update to 1.9.3:
  * Use native TLS certificates instead of webpki-roots
  * ~ in the config now expands to the user's home directory (#80)
  * Fixed wrong next automatic update time in tldr --offline --info
  * Fixed extraction of files that contain .. in the path from zip archives

OBS-URL: https://build.opensuse.org/request/show/1190369
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tlrc?expand=0&rev=5
2024-07-30 09:55:22 +00:00
4ef3da9f19 - Update to 0.8.0:
Breaking changes:
  * Force users to explicitly enable snippet execution (#276) (#281).
  New features:
  * Code snippet execution for various programming languages (#253) (#255) (#256) (#258) (#282).
  * Allow executing compiled snippets in windows (#303).
  * Add support for hidden lines in code snippets (#283) (#254).
  * Support mermaid snippet rendering to image via +render attribute (#268).
  * Allow scaling images dynamically based on terminal size (#288) (#291).
  * Allow scaling images generated via +render code blocks (mermaid, typst, latex) (#290).
  * Show stderr output from code execution (#252).
  * Wait for code execution process to exit completely (#250).
  * Generate images in +render code snippets asynchronously (#273) (#293) (#284) (#279).
  * Dim non highlighted code snippet lines (#287).
  * Shrink snippet execution to match code block width (#286).
  * Include code snippet execution output in generated PDF (#295).
  * Cache +render block images (#270).
  * Add kotlin script executor (#257).
  * Add nushell code execution (#274) (#275).
  * Add rust-script as a new code executor (#269).
  * Allow custom themes to extend others (#265).
  * Allow jumping fast between slides (#244).
  * Allow explicitly disabling footer in certain slides (#239).
  * Allow using image paths in typst (#235).
  * Add JSON schema for validation,completion,documentation (#228) (#236).
  * Allow having multiple authors (#227).
  Fixes:
  * Avoid re-rendering code output and auto rendered blocks (#280).
  * Use unicode width to calculate execution output's line len (#261).
  * Display background color behind '\t' in code exec output (#245).

OBS-URL: https://build.opensuse.org/package/show/utilities/tlrc?expand=0&rev=10
2024-07-30 03:56:17 +00:00
7 changed files with 115 additions and 19 deletions

View File

@@ -1,9 +1,9 @@
<services>
<service mode="disabled" name="obs_scm">
<param name="url">https://github.com/tldr-pages/tlrc.git</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="scm">git</param>
<param name="revision">v1.9.2</param>
<param name="revision">v1.12.0</param>
<param name="match-tag">*</param>
<param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param>
<param name="versionrewrite-replacement">\1</param>
@@ -19,8 +19,5 @@
<param name="compression">zst</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">ast-grep</param>
</service>
</services>

View File

@@ -1,5 +0,0 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

3
tlrc-1.12.0.tar.zst Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a7b02fab787dbf5487bbd3b84faeb336fbcb1fb23a3d2c15db4600f6bdb15286
size 39878

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:27b2b0d4e828dcdb29ce38dc4f1817c55d29e4cde5fa1b8d9f7f883bbd84231d
size 29635

View File

@@ -1,3 +1,61 @@
-------------------------------------------------------------------
Sat Oct 11 02:40:24 UTC 2025 - pallas wept <pallaswept@proton.me>
- Add shell completion
- Update OBS vendoring
-------------------------------------------------------------------
Fri Oct 10 05:17:35 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 1.12.0:
* New config option: cache.defer_auto_update to perform automatic
updates after the page is shown (#125)
* Add verbose mode (--verbose command-line option)
* Fix panic on --config-path when TLRC_CONFIG is set to an invalid value
* Don't print colors if stderr is not a terminal
* --clean-cache is now interactive, you can choose which directories
to delete
-------------------------------------------------------------------
Thu May 8 07:03:45 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 1.11.1:
* Increase the HTTP request timeout to 30 seconds (#128)
* Fix issues with proxies (#111)
-------------------------------------------------------------------
Mon Mar 17 06:13:29 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 1.11.0:
* Fix loading TLS certificates from the OS store (#111)
* New config option: output.line_length. The default is 0, which
means to use the width of the terminal.
Description lines will be wrapped to never exceed this value (#120).
* Client specification v2.3:
+ new command-line options: --short-options and --long-options.
+ new config option: output.option_style. Can be short, long or both.
Specifies which option style should be shown in new option placeholders ({{[-s|--long]}}).
-------------------------------------------------------------------
Mon Feb 10 07:37:58 UTC 2025 - Michael Vetter <mvetter@suse.com>
- Update to 1.10.0:
* Fixed stretched man page rendering when using mandoc
* Fixed wrong error messages when the pages.en directory in the
cache is empty
* The location of the config file can now be overridden using
the TLRC_CONFIG environment variable (#89)
* Added support for hex color codes (#115)
-------------------------------------------------------------------
Tue Jul 30 03:54:02 UTC 2024 - Michael Vetter <mvetter@suse.com>
- Update to 1.9.3:
* Use native TLS certificates instead of webpki-roots
* ~ in the config now expands to the user's home directory (#80)
* Fixed wrong next automatic update time in tldr --offline --info
* Fixed extraction of files that contain .. in the path from zip archives
-------------------------------------------------------------------
Tue Apr 30 06:20:46 UTC 2024 - Michael Vetter <mvetter@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package tlrc
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,13 @@
Name: tlrc
Version: 1.9.2+0
Version: 1.12.0
Release: 0
Summary: A tldr-pages client written in Rust
License: MIT
URL: https://tldr.sh/
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
Source2: cargo_config
BuildRequires: cargo-packaging
# Seems there is already another tldr-pages client
# Well but tlrc is the official one :)
@@ -33,9 +32,41 @@ Conflicts: tealdeer
%description
The tldr-pages project is a collection of community-maintained help pages for command-line tools, that aims to be a simpler, more approachable complement to traditional man pages.
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Supplements: (%{name} and bash-completion)
Requires: %{name} = %{version}
Requires: bash-completion
BuildArch: noarch
%description bash-completion
Bash command-line completion support for %{name}.
%package fish-completion
Summary: Fish Completion for %{name}
Group: System/Shells
Supplements: (%{name} and fish)
Requires: %{name} = %{version}
Requires: fish
BuildArch: noarch
%description fish-completion
Fish command-line completion support for %{name}.
%package zsh-completion
Summary: Zsh Completion for %{name}
Group: System/Shells
Supplements: (%{name} and zsh)
Requires: %{name} = %{version}
Requires: zsh
BuildArch: noarch
%description zsh-completion
Zsh command-line completion support for %{name}.
%prep
%autosetup -p1 -a1
install -D -m 644 %{SOURCE2} .cargo/config
%build
%{cargo_build}
@@ -43,10 +74,25 @@ install -D -m 644 %{SOURCE2} .cargo/config
%install
%{cargo_install}
install -Dm644 completions/tldr.bash %{buildroot}%{_datadir}/bash-completion/completions/tldr
install -Dm644 completions/tldr.fish -t %{buildroot}%{_datadir}/fish/vendor_completions.d
install -Dm644 completions/_tldr -t %{buildroot}%{_datadir}/zsh/site-functions
%check
%{cargo_test}
%files
%{_bindir}/tldr
%files bash-completion
%{_datadir}/bash-completion/*
%files fish-completion
%dir %{_datadir}/fish
%{_datadir}/fish/*
%files zsh-completion
%dir %{_datadir}/zsh
%{_datadir}/zsh/*
%changelog

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9a8b8c11cc3ba532c585f4b759c5f87f9c4e2f4b2b3de0aef031b8f38dfad692
size 20894953
oid sha256:8c8a6ca47b727df3ee8f7efc3d3e7fa855253c1e66097eb2c1530ae96925ace5
size 27775511