-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
user guide: add concept of well-behaved commands
- Loading branch information
Mr. Outis
committed
Dec 5, 2019
1 parent
0a0d69a
commit 98deb29
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Writing well-behaved commands | ||
|
||
DVC is simple to use, you only need to wrap your commands with `dvc run`, and | ||
define your dependencies and outputs. | ||
|
||
To prevent unexpected behaviors, ideally, your commands should follow some | ||
principles: | ||
|
||
- Read exclusively from specified dependencies | ||
- Write exclusively to specified outputs | ||
- Completely rewrite the outputs (do not append) | ||
- Stop reading and writing when the command exits |