On se bouge, on signe la pétition en masse :
— Non c’est Non, Monsieur Duplomb !
— Pour la santé, la sécurité, l’intelligence collective.

👨‍💻 about me home CV/Resume News 🖊️ Contact Codeberg Github LinkedIn 🏆 Best of LuaX (tools) pub bang ypp panda lsvg ldc yreq Fizzbuzz Calculadoira TPG picfg Belenos (intro) 🔀 Git Repos

Made in Europe

Cached Get

Cached Get

cget is a simple curl wrapper written in LuaX that downloads files and maintains a local cache for faster future downloads.

Releases

It is strongly recommended to build cget from source, as this is the only reliable way to install the exact version you need.

However, if you do require precompiled binaries, this page offers a selection for various platforms: https://cdelord.fr/pub.

Installation

cget is written in LuaX. It can be compiled with Ninja, LuaX and bang.

LuaX

$ git clone https://codeberg.org/cdsoft/luax
$ cd luax
$ ./bootstrap.sh
$ ninja install     # install LuaX to ~/.local/bin

Bang

$ git clone https://codeberg.org/cdsoft/bang
$ cd bang
$ ./boot.lua
$ ninja install     # build bang with Ninja and install it to ~/.local/bin

cget

$ git clone https://codeberg.org/cdsoft/cget
$ cd cget
$ bang
$ ninja install     # build cget with Ninja and install it to ~/.local/bin

ninja install installs cget in ~/.local/bin. The PREFIX variable can be defined to install cget to a different directory (e.g. PREFIX=/usr ninja install to install cget in /usr/bin).

Usage

Usage: cget [-h] [-v] [-p day] [-o output] [-s] [<url>]

Simple file downloader with a local cache

Arguments:
url                   URL of the file to download

Options:
-h, --help            Show this help message and exit.
-v                    Print cget version
-p day                Purge files older than `day` days
-o output             Output file
-s                    Silent mode

Cache path: $HOME/.local/var/cget

For more information, see https://codeberg.org/cdsoft/cget

License

cget is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

cget is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with cget.  If not, see <https://www.gnu.org/licenses/>.

For further information about cget you can visit
https://codeberg.org/cdsoft/cget

Feedback

Your feedback and contributions are welcome. You can contact me at CDSoft.

This site is powered by LuaX, bang, ypp, cdsoft.css and Pandoc.

Mirrors: cdelord.frchristophe.delord.free.frcdsoft.codeberg.page