#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

#910 in Filesystem

Download history 159/week @ 2023-12-18 94/week @ 2024-01-01 142/week @ 2024-01-08 157/week @ 2024-01-15 154/week @ 2024-01-22 190/week @ 2024-01-29 124/week @ 2024-02-05 36/week @ 2024-02-12 43/week @ 2024-02-19 50/week @ 2024-02-26 25/week @ 2024-03-04 2/week @ 2024-03-11 53/week @ 2024-04-01

57 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–24MB
~339K SLoC