A cli tool to download specific GitHub directories or files

Overview

cloneit

A cli tool to download specific GitHub directories or files.

Installation

From git

git clone https://github.com/alok8bb/cloneit
cd cloneit
cargo install build --release

Usage

cloneit 1.0
Alok P <[email protected]>
Download specific GitHub directories or files

USAGE:
    cloneit [FLAGS] <URL>

ARGS:
    <URL>    URL to the GitHub directory

FLAGS:
    -h, --help       Prints help information
    -l               Generate download link to zipped file
    -V, --version    Prints version information
    -z               Download zipped directory

Examples

Downloading

$ cloneit https://github.com/alok8bb/cloneit
$ cloneit https://github.com/alok8bb/cloneit/tree/master/src
$ cloneit https://github.com/alok8bb/cloneit/tree/master/src/main.rs

Zipped File - WIP

$ cloneit -z https://github.com/alok8bb/cloneit

Todo

  • Downloading zipped directories
  • Uploading File
  • Advanced Error Handling
  • Code Refactoring
Comments
  • Added `zip` feature and more code refactoring

    Added `zip` feature and more code refactoring

    Hey @alok8bb ,

    As I'd promised earlier, this is my first iteration on creating the zip feature. You can try to test it and lemme know if nothing's broken. Added some more features like allowing the user to download multiple URLs. You can look at the commits if you want more details on that

    opened by winterrdog 5
  • AUR Package

    AUR Package

    Hey! I recently ported this package to the Arch User Repository (AUR) for people to be able to download it easily. As the package is licensed with MIT, I assumed you would be fine with it. But letting you know in case if you have any objections/suggestions.

    The package can be found here. Cheers.

    opened by NotAShelf 3
  • Implementation of `download zip` feature

    Implementation of `download zip` feature

    Hey @alok8bb, How did you intend to implement the download zip feature?

    • [ ] My Case 1: Is the program supposed to download a zip archive that's already hosted on GitHub?

    • [ ] My Case 2: Is the program zip archiving the files to be downloaded on the fly?

    How would you want it implemented?

    Looking forward to your response! 🙂

    opened by winterrdog 3
  • Feature Request: Define Download path

    Feature Request: Define Download path

    Please allow to set download dir as 2nd argument in this format cloneit <git url> <download path>

    eg: to download install.sh in current dir cloneit https://github.com/alok8bb/cloneit/blob/master/install.sh .

    opened by shihaamabr 1
  • Refactored some code

    Refactored some code

    I refactored the code and added some improvements. You can checkout the commits for the detailed information about what i did 😊. You can also test it to make sure i didn't break anything( though i tested it, you can try and confirm for yourself😊 )

    opened by winterrdog 0
Releases(0.1.0)
Owner
Alok
I have a bad habit of leaving everything in middle
Alok
Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're working with files or directories, this tool simplifies common file operations with ease.

Rust FileOps Rust File Management CLI is a command-line tool written in Rust that provides essential file management functionalities. Whether you're w

Harikesh Ranjan Sinha 5 May 2, 2024
RnR is a command-line tool to securely rename multiple files and directories that supports regular expressions

RnR is a command-line tool to securely rename multiple files and directories that supports regular expressions. Features Batch rename files and direct

Ismael González Valverde 219 Dec 31, 2022
Download binary for your OS from Github

github-bin-downloader Download binary for your OS from Github. Installation Install github-bin-downloader using cargo cargo install github-bin-downloa

353fc443 10 Dec 11, 2022
Temporary files and directories with UTF-8 paths.

camino-tempfile A secure, cross-platform, temporary file library for Rust with UTF-8 paths. This crate is a wrapper around tempfile that works with th

null 4 Apr 24, 2023
Remove files or directories.

Wrm - Remove files or directories Installation Run the following Cargo command: cargo install wrm Usage To move files to trash($HOME/.local/share/wrm

null 41 Mar 4, 2024
CLI tool and crate to download FTDC data from mongodb clusters.

Download mongodb FTDC data Command line tool and lib crate to download FTDC data from mongodb clusters to investigate with e.g. keyhole. Crate For the

Mathias Oertel 0 Nov 7, 2021
A cli tool to download Imperial DoC past papers 🦀

Exams DoC Downloader A cli tool to download past papers from exams.doc.ic.ac.uk. An excercise in procrastination, written in Rust ?? . This currently

Ashvin Arsakularatne 3 Apr 8, 2022
A cli tool to automatically download and upload advent of code problems.

Advent of Code CLI CLI client for advent of code. The purpose of this tool is so you don't have to leave your editor while participating (if you are l

Tobias Walle 43 Dec 7, 2023
A commmand line tool for uploading homework coded on the dcloud server onto specific google drive course folders.

A commmand line tool for uploading homework coded on the dcloud server onto specific google drive course folders.

Daniel Kogan 2 Sep 8, 2022
Tool for managing dotfiles directories; Heavily based on rcm.

Paro paro : to prepare, get ready / set, put / furnish, supply. Tool for managing dotfiles directories; Heavily based on rcm. TODO Rust Boilerplate CI

Rafael Delboni 7 Nov 20, 2022
BoilerFiles is a CLI for downloading your boilerplate files from a public GitHub template repo.

BoilerFiles Available on crates.io. BoilerFiles is a CLI for downloading your boilerplate files from a public GitHub template repo. Features Are you t

Jan Müller 4 Oct 1, 2022
A simple CLI to build VEXCode V5 Pro projects and download them to the V5 brain.

vexer A simple CLI to build VEXCode V5 Pro projects and download them to the V5 brain. (WIP) This currently is only tested on and only works on window

null 2 May 16, 2022
cli application to visualize crate download metrics.

cli application to visualize crate download metrics.

Orhan Balci 2 Dec 13, 2022
dlfile is a very simple, straightforward CLI to download a file

dlfile dlfile is a very simple, straightforward CLI to download a file, except it... Only downloads over HTTPS Requires TLS 1.2 or higher Executes in

Colin 3 Oct 21, 2022
Multi-protocol CLI download accelerator

dlrs dlrs is a multi-protocol download tool for the command line. Written in Rust, dlrs splits your downloads to speed them up where possible. Feature

Tushar 7 Aug 7, 2023
CLI tool for generating a summary of recent github activity for people who are incredibly forgetful

CLI tool for generating a summary of recent github activity for people who are incredibly forgetful but still need to give weekly status updates to their boss without getting depressed and convincing themselves they did nothing because they can't remember what they did!

Jane Lusby 50 Dec 23, 2022
Kusa is a simple CLI tool that works on any platform and displays GitHub contribution graphs.

Kusa is a simple CLI tool that works on any platform and displays GitHub contribution graphs. Installation Homebrew (only macOS) $ brew tap Ryu0118/Ku

Ryu 103 Jun 18, 2023
A commandline tool to download video from bilibili.

Bilibili-dl 不断学习,持续更新中.... A commandline program to download video from bilibili. How to use bilibili-dl -h print help bilibili-dl download <URL> to

Jason 4 Oct 9, 2023
TTAutoRecord is a tool to automatically download TikTok Livestreams of users you follow.

TTAutoRecord: Automated TikTok Live Stream Recorder TTAutoRecord is a specialized utility designed to automate the recording of live streams on TikTok

Ollie 4 Oct 30, 2023