Skip to content

Commit 3cad317

Browse files
authored
doc: update layer.md
1 parent 6993a6a commit 3cad317

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

_docs/layer.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
The volt commands like `volt get` which may modify lock.json, config.toml,
55
filesystem, are executed in several steps:
66

7-
1. (UI layer): pass subcommand arguments, lock.json & config.toml structure
8-
to Gateway layer
9-
2. (Gateway layer): Create an AST according to given information
10-
* This layer cannot touch filesystem, because it makes unit testing difficult
11-
3. (Usecase layer): Execute the AST. This note mainly describes this layer's design
7+
1. (UI layer): Passes subcommand arguments, lock.json & config.toml structure to Gateway layer
8+
2. (Gateway layer): Invokes usecase(s). This layer cannot touch filesystem, do network requests, because it makes unit testing difficult
9+
3. (Usecase layer): Modify files, do network requests, and other business logic
1210

1311
Below is the dependency graph:
1412

0 commit comments

Comments
 (0)