Skip to content

Commit

Permalink
Number the subcommand steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Sep 26, 2020
1 parent dffb804 commit b698b25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/doc/contrib/src/architecture/subcommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ subcommands live in [`src/bin/cargo/commands`] directory.
Each subcommand, such as [`src/bin/cargo/commands/build.rs`], usually performs
the following:

* Parse the CLI flags. See the [`command_prelude`] module for some helpers to make this easier.
* Load the config files.
* Discover and load the workspace.
* Calls the actual implementation of the subcommand which resides in [`src/cargo/ops`].
1. Parse the CLI flags. See the [`command_prelude`] module for some helpers to make this easier.
2. Load the config files.
3. Discover and load the workspace.
4. Calls the actual implementation of the subcommand which resides in [`src/cargo/ops`].

If the subcommand is not found in the built-in list, then Cargo will
automatically search for a subcommand named `cargo-{NAME}` in the users `PATH`
Expand Down

0 comments on commit b698b25

Please sign in to comment.