#download #boilerplate #cli #file #home-dir

app boilerfiles

A CLI for download boilerplate files

4 releases (2 breaking)

0.3.1 Aug 28, 2022
0.3.0 Aug 28, 2022
0.2.0 Aug 28, 2022
0.1.0 Aug 28, 2022

#10 in #home-directory

MIT license

660KB
99 lines

BoilerFiles

Available on crates.io.

BoilerFiles is a CLI for downloading your boilerplate files from a public GitHub template repo.

Features

Are you tired of copying your .editorconfig and .prettierrc to every new project you create? So am I!

With this CLI, you can easily download (multiple) files from your public GitHub repositories.

You may also create a file .boilerfiles in your home directory containing a qualifier for a default repository, e.g., YourUsername/YourTemplateRepository.

Installation

cargo install boilerfiles

Usage

boilerfiles [{user}/{repo}] [path]

Examples

With the following example, users are prompted to download files from the root directory of the DerYeger/boilerfiles repository.

boilerfiles DerYeger/boilerfiles

You may also specify a sub path, e.g., .github/workflows. This way, you may download files from the .github/workflows directory.

boilerfiles DerYeger/boilerfiles .github/workflows

Config file

By creating a file .boilerfiles in your home directory, you may set a default directory.

The file should have a single line that matches the format of the {user}/{repo} arg. If such a file exists, the respective argument may be omitted.

License

MIT - Copyright © Jan Müller

Dependencies

~7–21MB
~315K SLoC