Skip to content

Commit db61e8e

Browse files
authored
Update CONTRIBUTING.md
1 parent d48decc commit db61e8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ To add a new package manager, make sure to follow these steps:
113113

114114
**Example**:
115115

116-
`{ Cargo, "cargo", "Cargo.toml", cargo },`
116+
`{ Cargo, "cargo", [ ("Cargo.toml", cargo) ] },`
117117

118-
The first item `Cargo` corresponds to the name of the package manager. The second item `cargo` is the display name. Then we have the name of the package manager file that will be parsed: `Cargo.toml`. The last item `cargo` corresponds to the function mame responsible for parsing the package manager file, cf. step 2.
118+
The first item `Cargo` corresponds to the name of the package manager. The second item `cargo` is the display name. Then we have the name of the package manager file that will be parsed: `Cargo.toml` along with its parser `cargo` (cf. step 2), notice that the third item is an array of tuple in case the package manager has multiple parsers (e.g. pip).
119119

120120
2. in `src/onefetch/deps/package_parser.rs`: create a function that takes an input of type `&str` representing the content of the package manager's file, and returns a `usize` as its number of dependencies.
121121

0 commit comments

Comments
 (0)