Add siac commands for /skynet/portals API endpoints
FEATURE REQUEST
Description of Request
!4312 (merged) adds new API endpoints at /skynet/portals
for adding and retrieving the persisted portals list.
We should add new siac
commands at siac skynet portals
for adding and displaying portals.
Reason or Need for Feature
siac is a more user-friendly than the API.
Design / Proposal
I would add subcommands like add
, remove
, and get
, the first two of which are interactive. siac would prompt for the address and whether the portal is public or not in a loop until the user enters a blank value.
A point to note is that because a portal consists of two values, interactivity is the most user-friendly way to implement it. However, this means we can't be consistent with siac skynet blacklist
, which takes a single value and is non-interactive.