and for a more general approach, maybe consider reviewing how docker plugin wizard is implemented.