snap eclipse has install-snap chage in progress code example
Example: install snap change in progress ubuntu
$ snap changes
...
123 Doing 2018-04-28T10:40:11Z - Install "foo" snap
...
$ sudo snap abort [ID]
$ snap changes
...
123 Doing 2018-04-28T10:40:11Z - Install "foo" snap
...
$ sudo snap abort [ID]