Imports github.com/snapcore/snapd/cmd github.com/snapcore/snapd/dirs github.com/snapcore/snapd/interfaces github.com/snapcore/snapd/logger github.com/snapcore/snapd/osutil github.com/snapcore/snapd/snap github.com/snapcore/snapd/timings Standard library imports bytes fmt os os/exec path path/filepath sort