class Importmap::Commands

def unpin(*packages)

def unpin(*packages)
  if imports = packager.import(*packages, env: options[:env], from: options[:from])
    imports.each do |package, url|
      if packager.packaged?(package)
        if options[:download]
          puts %(Unpinning and removing "#{package}")
        else
          puts %(Unpinning "#{package}")
        end
        packager.remove(package)
      end
    end
  else
    puts "Couldn't find any packages in #{packages.inspect} on #{options[:from]}"
  end
end