7 releases (breaking)
new 0.7.0 | Mar 1, 2025 |
---|---|
0.6.0 | Mar 1, 2025 |
0.5.0 | Mar 1, 2025 |
0.4.0 | Feb 25, 2025 |
0.1.0 | Jan 23, 2025 |
#1302 in Command line utilities
512 downloads per month
26KB
508 lines
Spawn
A command-line tool for creating files and folders from a template.
Installation
Use Cargo to install the application.
cargo install spawn-cli
Usage
Copy files from a template to the current directory using the following command
providing the location of a Git repository as URI
.
spwn <URI>
The template can be a collection of files and folders using Tera template syntax. The command will scan these files for identifiers and ask for values before creating the files and folders at their target location.
Follow this link to learn more about Tera templates.
[!TIP]
Thespwn
command was chosen for this tool because it should be easy to type on most keyboards by alternating between left and right hand.
Adding an alias
To avoid having to enter the complete URI every time, it is also possible to add an alias.
Use the following command to add an alias:
spwn alias add <NAME> <URI>
Removing an alias
To remove an alias, use the following command:
spwn alias remove <NAME>
Listing all aliases
To show all available aliases use:
spwn alias list
Dependencies
~27–40MB
~655K SLoC