@shellbrains/reqs

Shell command to check fiel and status requirements for the current folder

Usage no npm install needed!

<script type="module">
  import shellbrainsReqs from 'https://cdn.skypack.dev/@shellbrains/reqs';
</script>

README

reqs

Shell command to check your project's requirements and status

Examples

Sample configuration, save it as reqs.toml in your project folder

[files]
readable = ["wp-config.php"]
writeable = ["wp-content/cache"]

[commands.grep] # the command's name is not important
command = "grep 'test' *"
outputs = "test"

Run reqs in the same folder, and it should output something like this:

- Path wp-config.php is not readable
- Path wp-content/cache is not writeable
+ Command "grep 'test' *" outputs "test"