guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!
http://guumaster.github.io/hostctl
MIT License
1.05k stars 45 forks source link

Add support to stdin input as workaround for snap strict confinement #23

Closed guumaster closed 4 years ago

guumaster commented 4 years ago

The snap package is published on a strict confinement and cannot read any file outside it, so the input --from /any/file is a problem.

A workaround is to accept stdin input instead. Ex: hostctl add -p some < /path/to/file.