#git #file #lfs #pull #pattern #pulling #git-lfs

bin+lib lfspull

A simple git lfs file pulling implementation in pure rust. Can only pull files / folders and only support token-auth for now.

2 unstable releases

0.2.0 Mar 27, 2023
0.1.0 Oct 21, 2022

#5 in #lfs

Download history 71/week @ 2023-12-29 136/week @ 2024-01-05 152/week @ 2024-01-12 148/week @ 2024-01-19 198/week @ 2024-01-26 123/week @ 2024-02-02 60/week @ 2024-02-09 41/week @ 2024-02-16 44/week @ 2024-02-23 34/week @ 2024-03-01 9/week @ 2024-03-08 1/week @ 2024-03-15 39/week @ 2024-03-29 14/week @ 2024-04-05

53 downloads per month

MIT license

31KB
614 lines

LFSPull - a simple pulling tool for git-lfs

Crates.io Documentation CI Coverage Status License

Features

LFSPull allows you to pull files from git-lfs. It currently supports:

  • Token-auth only
  • Pulling single files
  • Globbing patterns and pulling all matches
  • Cache-compatible with the original git-lfs
  • Hash verification of the downloaded file

CLI guide

The CLI is pretty straight forward.

  • -f / --file-to-pull [FILE] single file download mode
    • e.g. lfspull -f my_file.tar.gz downloads the file
  • '-r / --recurse-pattern [PATTERN]' downloads everything that matches the pattern
    • e.g. 'lfspull -r "*.tgz"' downloads all .tgz files in this folder
    • e.g. 'lfspull -r "**/*.tgz"' downloads all .tgz files this folder and all subfolders
  • '-a / --access-token [TOKEN]' sets the token - can also be set via $ACCESS_TOKEN from env
  • '-v' for verbose mode

Library API guide

Please see our docs.rs for example code and the gherkin tests for how to check the origin of the file.

Dependencies

~8–25MB
~340K SLoC