Skip to content

Commit 6bac27c

Browse files
committed
Update DEVELOPER_GUIDE.md
1 parent e364784 commit 6bac27c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

DEVELOPER_GUIDE.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ The following instructions will guide you to adding a Carlo langauge subcommand.
1515

1616
1. Create a Cargo library package in the `subcommands` directory with the name `sc`, where `sc` is your desired subcommand name. The package should have name `carlo-sc`.
1717

18-
2. Create a function in your subcommand library named `sc`. It is recommended that you import `carlotk::prelude::*` so you can use the Carlo tokenizer, parser, and environment utilities. Your function must have the following signature: `fn(CliArgs) -> ()`.
18+
2. Add `carlotk` to your subcommand library's `Cargo.toml` file.
1919

20-
3. Create the following entry in `Cargo.toml`.
20+
3. Create a function in your subcommand library named `sc`. It is recommended that you import `carlotk::prelude::*` so you can use the Carlo tokenizer, parser, and environment utilities. Your function must have the following signature: `fn(CliArgs) -> ()`.
21+
22+
4. Create the following entry in `Cargo.toml`.
2123

2224
```
2325
[dependencies.sc]
2426
path = "./subcommands/sc"
2527
```
2628

27-
4. In `src/main.rs`, add `subcommand sc` (on a new line) to the `include_subcommands!` macro invocation.
29+
5. In `src/main.rs`, add `subcommand sc` (on a new line) to the `include_subcommands!` macro invocation.

0 commit comments

Comments
 (0)