Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 6745d5d

Browse files
committed
Readme
1 parent ff3896f commit 6745d5d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,11 @@ The `inspect` method will return a dictionary containing the components:
7171
}
7272
]
7373
```
74+
75+
## Shell Interaction
76+
77+
The [sh](http://amoffat.github.io/sh/) Python module is used to execute Packer.
78+
As such, return values from all functional methods (`validate`, `build`, etc..) other than the `version` method
79+
will return an `sh` execution object. This is meant for you to be able to read stdout, stderr, exit codes and more after executing the commands. With the progression of `python-packer` less abstract objects will return and more concise return values will be provided.
80+
81+
Additionally, to verify that all errors return with as much info as possible, error handling is done gently. Most errors will raise an `sh` exception so that you're able to interact with them. Again, as this module progresses, these exceptions will be handled properly.

0 commit comments

Comments
 (0)