read from `--stdin`
Open
enhancement
- Dominant language
- Python
- Stars
- 6.4k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the desired feature
Useful for dev tooling.
Possible APIs
```
cat src/Contract.sol | slither - --stdin-filename src/Contract.sol
cat src/Contract.sol | slither - --base-path src/
```
`solc` API is like:
```
cat src/Contract.sol | solc - --allow-paths "*," --base-path ./src
```
`--base-path` is necessary for import resolution. Probably `--stdin-filename` (following language tooling conventions) would be better, as it provides more information.
Contributor guide
Assessment
This issue has not been assessed yet.