···66[dependencies]
77clap = { version = "4.5.45", features = ["derive"] }
88color-eyre = "0.6.5"
99-frontmatter-gen = "0.0.5"
+39
README.md
···11+# script-rs
22+The utility to run rust files as a script!
33+Currently only works on Linux and maybe MacOS.
44+55+## Installation
66+You can simply install this tool with this command!
77+```sh
88+cargo install --git https://tangled.sh/@restedwicked.xyz/script-rs
99+```
1010+1111+## Usage
1212+### Initialization
1313+You can create a template file by running
1414+```sh
1515+script-rs init <FILE>
1616+```
1717+The script-rs template file is setup to remove the annoying edition warning, and
1818+so you can run the file standalone if you make it an executable.
1919+### Running
2020+You can run a script with
2121+```sh
2222+script-rs run <FILE>
2323+```
2424+### Dependencies
2525+You can manage dependencies with the following commands.
2626+```sh
2727+script-rs add <FILE> [CARGO_ARGS]
2828+script-rs remove <FILE> [CARGO_ARGS]
2929+```
3030+You can simply use the same arguments you would use in a normal crate.
3131+3232+#### Examples
3333+```sh
3434+# Adding clap
3535+script-rs add clap.rs clap --features derive
3636+3737+# removing clap
3838+script-rs remove clap.rs clap
3939+```